首页 SQL SERVER 正文
  • 本文约227字,阅读需1分钟
  • 2751
  • 0
举报该广告
SQL查询不包含的

SQL查询不包含的

摘要
declare @sql varchar(1000)
select @sql='select '
select @sql=@sql+name+',' from syscolumns where id=object_id(N'表a') and name not in ('time')
select @sql=left(@sql,len(@sql)-1) 
select @sq...
declare @sql varchar(1000)
select @sql='select '
select @sql=@sql+name+',' from syscolumns where id=object_id(N'表a') and name not in ('time')
select @sql=left(@sql,len(@sql)-1) 
select @sql=@sql+' from 表a'

exec (@sql)

📱 扫码关注公众号

公众号二维码

扫描二维码关注我们,获取更多精彩内容
实时更新 · 干货满满

收藏

扫描二维码,在手机上阅读
评论
更换验证码
友情链接