MySQL基礎教程下篇 (修改查詢)

數據的修改查詢 原始數據: 修改數據: update 表名稱 set 字段名=修改值 [,字段名=修改值,...] [where 條件]; 1. 將所有學生的成績改爲60 update student set score=60; 2. 將id爲10的學生的成績修改爲100 update student set score=100 where id=10; 3. 將id大於10的學生,年齡增加2歲,
相關文章
相關標籤/搜索