DML

作者: 博行天下 | 来源:发表于2017-03-23 21:17 被阅读0次

数据库操作语句

insert into liubo values(1,'小明',12);
insert into liubo(name,priovince,sge) values('名','山东',20);插入一个数据
insert into liubo(name,priovince,sge) values('名','山东',20),('名','山东',20),('名','山东',20),('名','山东',20);插入多个数据,中间用逗号隔开;
用delete删除数据,【注意】用where限制,不然表中数据全部没有了。
delete from bb where id =2; 
update更新数据,【注意】也要住where限制
update liubo set money = 4000,age=30 where id  = 1;

相关文章

网友评论

      本文标题:DML

      本文链接:https://www.haomeiwen.com/subject/ncntottx.html