web上に情報が少なすぎる…。

Sybase使っているんですが、忘れないようにメモ。
1テーブルだけならsp_columnsとかでいけるんですけどね…。

select o.name, c.name, t.name, c.length
  from sysobjects o,
       syscolumns c,
       systypes   t
 where o.id       = c.id
   and o.type     = 'U'
   and t.type     = c.type
   and t.usertype = c.usertype
 order by o.name, c.colid

USER TABLEのみ抽出。

select name
  from sysobjects
 where type = 'U'
order by name