Select * from systable (or syscolumn) where table_name = yourtablename
Main Topics
Browse All TopicsHi there,
just started with sybase. pls tell me how can I get a table's description in sybase?
I know in oracle "describe 'table name'; " does the job. how about sybase?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Give this a shot (if not using Sybase Central and ASE):
select A.Table_name, B.column_name,
(Select domain_name from SYSDOMAIN where domain_id = B.domain_id) as DataType,
B.width as DataWidth,
(CASE Pkey
when 'Y' then 'YES'
else NULL
END) as Pkey
from SYSTABLE A, SYSCOLUMN B
where B.table_id = A.table_id and A.Table_Name NOT LIKE ('SYS%')
order by Table_Name, column_id
PegasusAloft
Err, what version of Sybase are you referring to? I'm working with ASE 12.5, and there are no objects named SYSTABLE or SYSCOLUMN in any of my databases. I just peeked.
This reminds me: There aughtta be a rule that any post contain the Product (ASE, MYSQL, ...) and Version in which the user is working.
Business Accounts
Answer for Membership
by: grant300Posted on 2006-10-23 at 15:28:28ID: 17792094
sp_help tablename
Regards,
Bill