问题描述
我的错误是在这部分(select min(sc.name) from so.name )
中,如何解决?
在选择中,我要获取表和列的名称,同时我想从表中获取列的最小值。那有可能吗?。
select so.name table_name,sc.name Column_name,(select min(sc.name) from so.name )
from sysindexes si,syscolumns sc,sysobjects so
where si.indid < 2 -- 0 = if a table. 1 = if a clustered index on an allpages-locked table. >1 = if a nonclustered index or a clustered index on a data-only-locked table.
and so.type = 'U' --U – user table
and sc.status & 128 = 128 --(value 128) – indicates an identity column.
and so.id = sc.id
and so.id = si.id
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)