select a.name as tabname ,h.name as idnamefrom sys.objects as a right join sys.indexes as h on a.object_id=h.object_id where a.type<>'s' go由于索引和系统列没有直接对应关系 所以不能直接查看列字段和字段长度
select * from user_indexs;
百度一下应该有答案