Create a column of SQL Server.

xiaoxiao2021-03-06  105

David == "Which city is unhappy !!! I hate Wuhan asked this question, I simply wrote an example.

Declare @ Para IntSet @ Para = 1Declare @K varchar (20), @ SQL VARCHAR (50) while @para <9beginset @ k = 'p' convert (varchar, @ para) print @kset @ SQL = 'Alter Table Test2 Add ' @K ' int 'print @sqlexecute (@SQL) set @ para = @ Para 1END

转载请注明原文地址:https://www.9cbs.com/read-125987.html

New Post(0)