十一、更新数据
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子句----慎重使用。
浙公网安备 33010602011771号