时间:2021-07-01 10:21:17 帮助过:68人阅读
原文地址: http://www.haokaoshi.com/html/jsjdj/3j/sjk/fd/37567.html SQL Server Create Proc pAllColumnSql (@tableName varchar(50)) as Declare @Name Varchar(2000) set @Name =’’ select @Name =@Name + ’,’ + Cast([name] as Varchar) from sys
原文地址: http://www.haokaoshi.com/html/jsjdj/3j/sjk/fd/37567.html SQL ServerCreate Proc pAllColumnSql (@tableName varchar(50)) as Declare @Name Varchar(2000) set @Name =’’ select @Name =@Name + ’,’ + Cast([name] as Varchar) from syscolumns where id=object_id(@tableName) set @name = substring(@name,2,len(@name)-1) select @name