[英]Trying to query SQL database and format output that would insert into new db
因此,我有一個本地數據庫,一個數據庫是天藍色的,我想將數據從一個數據庫復制到另一個數據庫,但無法弄清楚如何連接它們。 我認為下一個最佳選擇是將本地數據輸出到INSERT INTO命令中。
因此,基本上,我不希望其輸出顯示列和數據(例如“選擇前1000行”),而是將其格式化為:
INSERT INTO dbo.Articles(Id, Title, Thumbnail, VideoLink, Developer, Publisher, ReleaseDate, PublishDate, ReviewConsole, Score, Description, Text)
VALUES('Id','title','thumb','VidLink','dev','pub','release','publish','console','score','description','text'),
('Id2','title2','thumb2','VidLink2','dev2','pub2','release2','publish2','console2','score2','description2','text2'),
...
GO
有誰知道如何做到這一點?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.