數(shù)據(jù)庫操作語句
insert into liubo values(1,'小明',12);
insert into liubo(name,priovince,sge) values('名','山東',20);插入一個數(shù)據(jù)
insert into liubo(name,priovince,sge) values('名','山東',20),('名','山東',20),('名','山東',20),('名','山東',20);插入多個數(shù)據(jù),中間用逗號隔開;
用delete刪除數(shù)據(jù),【注意】用where限制,不然表中數(shù)據(jù)全部沒有了。
delete from bb where id =2;
update更新數(shù)據(jù),【注意】也要住where限制
update liubo set money = 4000,age=30 where id = 1;