Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Describe Table Using Sybase

Status
Not open for further replies.

wandan

Technical User
Dec 16, 2001
101
US
Hi There -

We are trying to get a list of the columns in a table with their respective PK using Sybase SQL? Does anyone know the appropriate code for this?

Thanks.
 
you can know the table comlumns from the system tables that are hidden in the database.
To see all the table names check the SYSTABLE and to see the columns in any table check the SYSCOLUMN table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top