dbTalk Databases Forums  

sybase newb...

comp.databases.sybase comp.databases.sybase


Discuss sybase newb... in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SpreadTooThin
 
Posts: n/a

Default sybase newb... - 12-08-2011 , 04:31 PM






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?

Reply With Quote
  #2  
Old   
bret_halford@msn.com
 
Posts: n/a

Default Re: sybase newb... - 12-09-2011 , 11:59 AM






On Dec 8, 3:31*pm, SpreadTooThin <bjobrie... (AT) gmail (DOT) com> wrote:
Quote:
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")

Reply With Quote
  #3  
Old   
SpreadTooThin
 
Posts: n/a

Default Re: sybase newb... - 12-09-2011 , 02:54 PM



Thank you very much.
name is one column but are there others that might help me determine the structure of the table?

Reply With Quote
  #4  
Old   
SpreadTooThin
 
Posts: n/a

Default Re: sybase newb... - 12-09-2011 , 03:17 PM



found this...
http://infocenter.sybase.com/help/in...s/tables22.htm

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.