How do I look at column metadata in Sybase?

后端 未结 3 610
庸人自扰
庸人自扰 2021-01-12 10:37

I have a list of columns a co-worker has given to me, but these columns reside in different tables in the DB. Is there some kind of tool in Sybase where I can query the tabl

3条回答
  •  时光取名叫无心
    2021-01-12 11:21

    You can find the information for any column in:

    SELECT * 
      FROM sys.syscolumns
    

    If you want to know to what table a column belongs:

    SELECT cname, tname 
      FROM sys.syscolumns
     WHERE tname IN ('col_1', 'col_2')
    

    NOTE: I test this in Sybase ASA 9.

提交回复
热议问题