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 > timing of a query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-17-04, 01:13
mickykt mickykt is offline
Registered User
 
Join Date: Mar 2003
Location: Singapore
Posts: 200
timing of a query

Hi,

Is there a setting where we can see the timing the query takes to run,as in oracle we can "set timing on".As such is there anyway we can see the timing it takes to run the query.

Thanks
micky
Reply With Quote
  #2 (permalink)  
Old 08-17-04, 01:44
pathri pathri is offline
Registered User
 
Join Date: Apr 2004
Location: zxczxczxc
Posts: 52
timing of a query

Hi,
You can use the OS "time" command to know the time required to execute a query. eg

time dbaccess DBNAME <<eof
select * from test;
eof

Bye.
__________________
zxczxczc
Reply With Quote
  #3 (permalink)  
Old 08-17-04, 23:38
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,

select current as start_time from systables where tabid=1
into temp x with no log;
select current - start_time from systables,x where tabid=1;
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