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')
2023-01-29 20:25:23
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')