From a Sybase Database, how I can get table description ( field names and types)?

前端 未结 12 877
刺人心
刺人心 2020-12-07 11:46

I have access to command line isql and I like to get Meta-Data of all the tables of a given database, possibly in a formatted file. How I can achieve that?

Thanks.

12条回答
  •  心在旅途
    2020-12-07 12:14

    Here a different approach to get meta data. This very helpful SQL command returns you the table / view definition as text:

    SELECT text FROM syscomments WHERE id = OBJECT_ID('MySchema.MyTable') ORDER BY number, colid2, colid

    Enjoy Patrick

提交回复
热议问题