Mysql 中提供了这样的用法: ON DUPLICATE KEY UPDATE 。 ... select count(1) from test where a=1; if count(1) > 0 UPDATE test SET b='xxx' ...
確定! 回上一頁