分类: Mysql/postgreSQL
2012-09-05 13:10:05
基本指令学习:
1.show databases;
2.create detabase DBname;
3.use databasename;
4.drop database DBname;
5.show tables;
6.create table tablename;
7.drop table talbename;
8.rename table oldname to newname
9.desc tablename;
10.insert into tablename (id,title,name,content) values (1,hkj,hi,conten)(可以多个值一次)
11.set names gbk;(当出现1366字符问题时)
12.select * from tablename;
13 update tablename set id=nu, content = ‘kjk’ where name = ‘kjkkj’;
14.delete from tablename where id=2;
select id,name from table where id>2 && name=kjk;
列类型学习:
数值型 : 整型 tinyint smallint mediumint int bigint
1 2 3 4 8
小数型 float(D,M) decimal(D,M)
字符串型: char(M) varchar(M) text 文本类型
日期时间类型:date time datetime year
为ibus安装极点五笔字库下载极点五笔,提取里面的db文件和icon文件,拷贝至ibus目录下相应的位置,如下:
cd vissible-ibus
sudo cp vissible.db /usr/share/ibus-table/tables
sudo cp vissible.gif /usr/share/ibus-table/icons