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 > explain on informix 7.3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-02, 20:39
sandra sandra is offline
Registered User
 
Join Date: Sep 2002
Posts: 1
explain on informix 7.3

Hello,

Please, I need to do an explain of a SQL, as I can make this in the informix (7,3).

Thank you very much
Reply With Quote
  #2 (permalink)  
Old 09-23-02, 04:22
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Do you want to do an explain of the access path of an sql-qry?

just use the sql statement:
SET EXPLAIN ON;
and
SET EXPLAIN OFF;

Informix will show exactly what the access path/joins/sorts/costs are

On WinNT/W2K, you find the result in %INFORMIXDIR%\sqexpl
On Unix, it's the directory where you executed dbaccess, or if you go via odbc, it's the homedirectory of the user.

I hope I understood your question correctly.
__________________
rws
Reply With Quote
  #3 (permalink)  
Old 09-23-02, 07:09
iahmad iahmad is offline
Registered User
 
Join Date: Sep 2002
Location: Pakistan
Posts: 17
Re: explain on informix 7.3

I am bit confused about the question but I think this could be one answere.

Using dbaccess or telnet do the following when writing quiries.

-----------------------------------------

set explain on;
select * from from table_name

-------------------------------------------

This will create a file name sqexplain.out at the root

editing this file will have the required results.
__________________
Istikhar Ahmad
------------------
Tel: (92-42) 111000911
iahmad@i2cinc.com
http://www.i2cinc.com
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