Table Details in SQL Anywhere?

virtualmic picture virtualmic · Feb 25, 2009 · Viewed 28.6k times · Source

I just downloaded the developer edition of SQL Anywhere. How can I get a list of tables in the database I'm connected to?. Also for a particular table, how do I get the meta-data for that table (column names, types, etc)?

Answer

Steve Weet picture Steve Weet · Feb 25, 2009

I have not used SQL-Anywhere for many years however the following statement should work

select c.column_name
from systabcol c 
   key join systab t on t.table_id=c.table_id 
   where t.table_name='tablename'

This was cribbed directly from an earlier question