This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--組成C#的insert指令 | |
--StringBuilder sb_insertcmd = new StringBuilder(); | |
--sb_insertcmd.AppendLine(@"INSERT INTO "+this.schema+".[XYZ123]"); | |
SELECT 'sb_insertcmd.AppendLine(@" (['+COLUMN_NAME+']");' FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_SCHEMA = 'dbo' AND TABLE_NAME = 'XYZ123' |
沒有留言:
張貼留言