mysql 1093錯誤爲:當修改一個表的時候子查詢不能是同一個表,解決辦法:把子查詢再套一層,變成原來表的孫子查詢就能夠了,例如: insert into gg set id3= (select c.a+1 from (select max(id3) as a from gg) c) 這是對的 可是 insert into gg set id3= (select max(id3) as a from gg) 就會報1093錯誤mysql