Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 12th, 2005, 11:59 AM
narayana
Guest
 
Posts: n/a
Default how to know how many tables i created in the database

how to know about how many tables i created in that database.if the
database is connected to many users.

i want the query in this way that i want creater,number of
tables,time,updates .

the last two columns not required i need the number of tables i created
in that table

  #2  
Old November 12th, 2005, 11:59 AM
Pierre Saint-Jacques
Guest
 
Posts: n/a
Default Re: how to know how many tables i created in the database

Connect to your DB.
Short way: db2 list tables for USER
db2 list tables for schema <schemaname>
Or:
select tabschema,tabname,definer,create_time from syscat.tables where
tabschema=USER

Updates are not kept in those catalog tables. You'd have to creatr an event
monitor or take regular snapshot to get those numbers.

HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"narayana" <vagu.narayana@gmail.com> a écrit dans le message de news:
1131732667.131444.152810@g49g2000cwa.googlegroups. com...[color=blue]
> how to know about how many tables i created in that database.if the
> database is connected to many users.
>
> i want the query in this way that i want creater,number of
> tables,time,updates .
>
> the last two columns not required i need the number of tables i created
> in that table
>[/color]

 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles