mysql的简单操作5

update注意点
1.单词不是updata!!
2.可以对全部内容进行更新
语句:
update two set age = 20;
3.可以对部分内容进行更新
update two set gender = 'fale' where age = 20;
4.一般不要用等于号 习惯于用is代替=。
5.特殊情况:
update two set gender = 'fale' where 1 = 1;

猜你喜欢

转载自blog.csdn.net/shuyan745294340/article/details/88557236