2013年11月16日土曜日

MySQLのselectからinsertする構文

insert into table1
select a, b, c from table2 where id=?

みたいな感じ。

http://stackoverflow.com/questions/15523597/mysql-insert-into-values-and-select

0 件のコメント:

コメントを投稿