SQL Update的四種常見寫法

/* 實驗對象:兩個學生表 1. 一個stu學生表,一個stu1學生表. 2. 上述表有三個字段 (學生id,學生性別,學生名字) */ /* update語句常見場景,分爲兩大類: 1.單表update 2.多表關聯update */ -- 1.1 單表update單字段 update stu t set t.NAME = 'mike' where t.ID = '1'; -- 1.2 單
相關文章
相關標籤/搜索