Discussion:
sybase newb...
(too old to reply)
SpreadTooThin
2011-12-08 22:31:44 UTC
Permalink
I'm trying to figure out the column names in a table...
I'm use to SQL and saying something like DESCRIBE TableName;
What is the sybase equivalent?
b***@msn.com
2011-12-09 17:59:58 UTC
Permalink
Post by SpreadTooThin
I'm trying to figure out the column names in a table...
I'm use to SQL and saying something like DESCRIBE TableName;
What is the sybase equivalent?
For ASE,

execute sp_help TableName


or for a more raw view of the data, just the column names

select name from syscolumns where id = object_id("TableName")
SpreadTooThin
2011-12-09 20:54:44 UTC
Permalink
Thank you very much.
name is one column but are there others that might help me determine the structure of the table?
SpreadTooThin
2011-12-09 21:17:44 UTC
Permalink
found this...
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.tables/html/tables/tables22.htm
Loading...