Unix Technical Forum

Re: How to get only the user table names from systables

This is a discussion on Re: How to get only the user table names from systables within the Informix forums, part of the Database Server Software category; --> joseph v d'silva wrote: > Hi, > > I am planning to write a shell script that will unload ...


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 06:29 PM
Mark D. Stock
 
Posts: n/a
Default Re: How to get only the user table names from systables


joseph v d'silva wrote:

> Hi,
>
> I am planning to write a shell script that will unload all user
> tables from a database, but for this I require to get all the
> usertable names, now the problem is that the systables lists system
> tables also. On the other hand if you go to dbaccess where the table
> info is listed, you will have only user tables listed. I want to know
> how dbaccess works out this "magic" of distinguishing system tables
> and usertables.


SELECT tabname
FROM systables
WHERE tabid > 99
AND tabtype = "T"

Cheers,
--
Mark.

+----------------------------------------------------------+-----------+
| Mark D. Stock mailto:mdstock@MydasSolutions.com |//////// /|
| Mydas Solutions Ltd http://MydasSolutions.com |///// / //|
| +-----------------------------------+//// / ///|
| |We value your comments, which have |/// / ////|
| |been recorded and automatically |// / /////|
| |emailed back to us for our records.|/ ////////|
+----------------------+-----------------------------------+-----------+

sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:35 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com