更新时间:2023-02-18 23:19:51
您可以使用 INFORMATION_SCHEMA.COLUMNS [ ^ ]检索表格的列名。
如果您不确定如何使用光标,请查看
SQL SERVER - 光标的简单示例 [ ^ ]
DECLARE CURSOR(Transact-SQL) [ ^ ]
You can use INFORMATION_SCHEMA.COLUMNS[^] to retrieve the column names of a table.
If you are not sure how to use cursor take a look at
SQL SERVER – Simple Example of Cursor[^]
DECLARE CURSOR (Transact-SQL)[^]