1.mysql update 語句:
update user set name = 'xiaoming',age = 18
where uid = 3000;
更新記錄時update操作也不需要寫table關鍵字,像insert into一樣,不需要寫table關鍵字,直接寫表名即可
2.mysql insert 語句:
insert into user(uid,age,name,address) values(1000,18,'xiaohong','hunanyiyang')
1.mysql update 語句:
update user set name = 'xiaoming',age = 18
where uid = 3000;
更新記錄時update操作也不需要寫table關鍵字,像insert into一樣,不需要寫table關鍵字,直接寫表名即可
2.mysql insert 語句:
insert into user(uid,age,name,address) values(1000,18,'xiaohong','hunanyiyang')
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。