在单个查询中将多个值插入数据库。 [英] Insert multiple values into the database in a single query.
本文介绍了在单个查询中将多个值插入数据库。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在从另一个表中选择数据时将多个vales插入数据库。但是这两个表都在单独的数据库中。
先谢谢。
I need to insert multiple vales into the database while selecting data from another table. But the both tables are in separate database.
Thanks In advance.
推荐答案
查看INSERT INTO
和SELECT INTO
- http://blog.sqlauthority.com/2007/08/15/sql-server-insert- data-from-table-to-another-table-insert-into-select-select-into-table / [ ^ ]。
Have a look atINSERT INTO
andSELECT INTO
- http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/[^].
使用 SQL INSERT INTO SELECT语句 [ ^ ]
我来自两个不同服务器数据库的NSERT INTO [ ^ ]
这篇关于在单个查询中将多个值插入数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文