2018-11-27
閱讀量:
738
更新表中的數(shù)據(jù)
update 語句可用來修改表中的數(shù)據(jù), 基本的使用形式為:
update 表名稱 set 列名稱=新值 where 更新條件;
使用示例:
將id為5的手機(jī)號(hào)改為默認(rèn)的"-": update students set tel=default where id=5;
將所有人的年齡增加1: update students set age=age+1;
將手機(jī)號(hào)為 13288097888 的姓名改為 "張偉鵬", 年齡改為 19: update students set name="張偉鵬", age=19 where tel="13288097888";






評(píng)論(0)


暫無數(shù)據(jù)
CDA考試動(dòng)態(tài)
CDA報(bào)考指南
推薦帖子
0條評(píng)論
1條評(píng)論
0條評(píng)論
0條評(píng)論