sql-2
2016-03-28 17:55 joe_tester 阅读(61) 评论(0) 收藏 举报插入数据:insert into customers(cust_id,cust_name) values ('10000','haha');
插入检索数据:insert into customers(cust_id,cust_name) select cust_id,cust_name from custNew;
从一个表复制到另一个表: creat table custCopy as select * from customers;
更新数据: update customers set cust_email='222@qq.com'(Null置为空) where cust_id='11000';
删除数据: delete from customers where cust_email='222@qq.com';
删除表所有数据:truncate table ;速度快,不记录数据变动;
创建、更新、删除表: creat alter drop
浙公网安备 33010602011771号