十一、更新数据

11.1更新表中特定行
>>> UPDATE costomers SET cust_email='elmer@sina.com' WHERE cust_id='10005'; #更新指定行的特定列
>>> update costomers set cust_email='elmer@sina.com',cust_phone='0755-2536541' where cust_id='10005'; #更新指定行的特定列

11.2更新表中所有行
update语句中没有where子句----慎重使用。



posted @ 2023-04-12 18:14  5250  阅读(20)  评论(0)    收藏  举报