0

Is there a way to list all the tables on a SQL Anywhere using iSQL?

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
Pablo Fernandez
  • 7,438
  • 25
  • 71
  • 83

2 Answers2

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
  • 555
  • 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,731
  • 4
  • 42
  • 51