MySQL direct INSERT INTO with WHERE clause

前端 未结 6 2047
梦如初夏
梦如初夏 2020-12-15 09:04

I tried googling for this issue but only find how to do it using two tables, as follows,

INSERT INTO tbl_member
SELECT Field1,Field2,Field3,... 
FROM temp_ta         


        
6条回答
  •  萌比男神i
    2020-12-15 09:52

    INSERT syntax cannot have WHERE clause. The only time you will find INSERT has WHERE clause is when you are using INSERT INTO...SELECT statement.

    The first syntax is already correct.

提交回复
热议问题