If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > To List all indexes in a database?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-08, 01:58
gemini_king gemini_king is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
To List all indexes in a database?

Hi All,

How to list all indexes names in a particular database(ex: v001)?


thanks in advance!!!!!!!!
Reply With Quote
  #2 (permalink)  
Old 11-24-08, 03:53
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
How about
select idxname from sysindexes;

HTH
Reply With Quote
  #3 (permalink)  
Old 11-24-08, 06:34
gemini_king gemini_king is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
thank you very much !!!!!!!!!!!!!!!!!
Reply With Quote
  #4 (permalink)  
Old 11-24-08, 06:37
gemini_king gemini_king is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
but one more thing!

how to export the result of this query to a file?
Reply With Quote
  #5 (permalink)  
Old 11-24-08, 09:07
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
Depends which tool you are using.
If you are using dbaccess, in query menu you have output option where you can set output to go to new-file, append-file, printer, ...
HTH
Reply With Quote
  #6 (permalink)  
Old 11-24-08, 09:31
gemini_king gemini_king is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
using dbaccess utility....

Hi,

i am learning IDS. can you please send details steps to export the output to a file. i am using dbaccess utility....

thanks once again!!!!!!!!!!!
Reply With Quote
  #7 (permalink)  
Old 11-24-08, 09:55
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
Type:
dbaccess your_database_name (of course replace your_database_name with name of your database)
Press "Q" (without quotes, of course - Q stands for "query-language")
Press "N" (without quotes, of course - N stands for "new")
Type in your query. For example:
select idxname from sysindexes;
After you are finished with query press ESC (escape key)
Press "O" (without quotes, of course - O stands for "output")
Press "N" (without quotes, of course - N stands for "new-file" - you have to be carefule because if file exists it'll be overwritten)
Type in file name, for example:
my_first_output_file
Press Enter key when finished
Press "R" (without quotes, of course - R stands for "run")
Press twice "E" (without quotes, of course - E stands for "exit")
And you're back in OS an you have your file.
HTH
Reply With Quote
  #8 (permalink)  
Old 11-24-08, 23:15
gemini_king gemini_king is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
thanks sir!!!!!!!!!!!!!
it is very help full
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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