INSERT INTO books (name) SELECT 'MySQL Manual' FROM dual WHERE NOT EXISTS (SELECT id FROM booksWHERE id = 1)
转载于:https://www.cnblogs.com/qiumingcheng/p/9001529.html
INSERT INTO books (name) SELECT 'MySQL Manual' FROM dual WHERE NOT EXISTS (SELECT id FROM booksWHERE id = 1)
转载于:https://www.cnblogs.com/qiumingcheng/p/9001529.html