一条sql语句完成查询一个表的记录并且插入到另外一个表中

By SuperTaoer | 八月 2, 2005
Under: 程序 技术 周边
Views:

INSERT INTO table1 (field1, field2) SELECT fielda, fieldb FROM table2;

注意select中的field的顺序要和insert中的field的顺序保持一致 :)

差..好文!! (还没评价)
Loading ... Loading ...

Leave a Message

No Messages

No Messages

RSS feed for comments on this post. TrackBack URI

Leave a Message