dbTalk Databases Forums  

to retrieve tables with "specific" owner

comp.databases.sybase comp.databases.sybase


Discuss to retrieve tables with "specific" owner in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
spanda
 
Posts: n/a

Default to retrieve tables with "specific" owner - 12-18-2003 , 06:41 AM






Hi,

I use "dbisqlc" in shell script to get the tables from a database.
In the look up it shows the table name as "master.testDB etc".
I want to retrive all tables with prefix as "master".
For this I use the sql statement as;
sql="SELECT TABLE_NAME FROM SYS.SYSTABLE WHERE TABLE_NAME LIKE
'%master%'"

But I don't get the tables with "master" prefix although I can see them in
the lookup of dbisqlc.
If I use the sql to retrieve the table records of master.testDB, I am able
to do so.

Can somebody please let me know whether these tables be retrieved in any
way?

In general, I want to get all the tables names from the database owned by
the current user.

Any help is appreciated.

Regards
Subrat




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.