Is there a way to list all the tables on a SQL Anywhere using iSQL?
Asked
Active
Viewed 5,100 times
2 Answers
1
select table_name from sys.systab where table_type_str = 'BASE'
You can change 'BASE'
to 'VIEW'
to get views, and 'GBL TEMP'
to get global temporary tables.
Graeme Perrow
- 545
- 1
- 4
- 16
-1
I am not sure is this will work or not, but try this:
select TABLE_NAME from INFORMATION_SCHEMA.TABLES
I believe this is a database independent way of getting a list of tables.
jftuga
- 5,572
- 4
- 39
- 50
-
SQL Anywhere does not support this syntax. – Graeme Perrow Jan 10 '12 at 17:46
-
That is why I said "not sure". – jftuga Jan 11 '12 at 16:49