INSERT with SELECT

前端 未结 8 1522
灰色年华
灰色年华 2020-11-22 13:49

I have a query that inserts using a select:

INSERT INTO courses (name, location, gid) 
            SELECT name, location, gid 
              FROM courses 
           


        
8条回答
  •  醉话见心
    2020-11-22 14:26

    I think your INSERT statement is wrong, see correct syntax: http://dev.mysql.com/doc/refman/5.1/en/insert.html

    edit: as Andrew already pointed out...

提交回复
热议问题