我可以使用什么SQL来获取Sybase ASE中列的类型?
select obj.name as "table", col.name as "column", type.name as "type"
from sysobjects obj
join syscolumns col on obj.id=col.id
join systypes type on col.type=type.type and col.usertype = type.usertype
where obj.type = "U" -- means 'U'ser table
and user_name(obj.uid) = 'dbo' -- or whatever the user is who owns/created the table
and obj.name = 'fruit'
and col.name = 'color'