Questions tagged «insert-select»

7
用SELECT插入
我有一个查询,使用选择插入: INSERT INTO courses (name, location, gid) SELECT name, location, gid FROM courses WHERE cid = $cid 是否可以仅为插入内容选择“名称,位置”,并将gid设置为查询中的其他内容?
287 mysql  sql  insert-select 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.