• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 606
  • Last Modified:

get all coulmn names of a table

running the following
SELECT column_name FROM information_schema.columns where table_name ='auth_person_list'

gives

information_schema.columns not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output). this is sybase database
0
PearlJamFanatic
Asked:
PearlJamFanatic
1 Solution
 
Pratima PharandeCommented:
SELECT * from syscolumns
WHERE id = object_id('tablename')

refer
http://www.experts-exchange.com/Database/Sybase/Q_23448931.html
0
 
yadayaCommented:
SELECT * 
FROM syscolumns sc
INNER JOIN sysobjects so ON sc.id = so.id
WHERE so.name = 'my_table_name'

Open in new window

Here sysobjects decription.

Here syscolimns decription.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now