标签:
1.基本语句
(1)新建表:
-----create table table1(id varchar(300)primary key,name varchar(200)not null);
(2)插入数据:
------insert into table1(id,name)values(‘aa‘,‘bb‘);
(3)更新数据
------update table1 set id=‘bb‘where id=‘cc‘;
(4)删除数据:
------delete from table1 where id=‘cc‘;
(5)删除表:
-----drop table table1;
(6)修改表名:
-----alter table table1 rename to table2;
(7)
标签:
原文地址:http://www.cnblogs.com/heisaijuzhen/p/4770656.html