954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to display the time used to execut SQL command

i have a Problem to know how much time the server take to execute an SQL command .

I user Oracle Db and SQL DB

thanx

m_shanak
Newbie Poster
15 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

if using sql*plus with oracle use the follwing

SQL> SET TIMING ON

SQL> YOUR QUERY ...........

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

YOu can use a shortcut method as well.
set timi on
By the way you can get more features from

Arju
Newbie Poster
3 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

am work on a flex project ,and one of it's features is to display how much time the oracle or the data Base used to execute the query and display the time on the flex interface

m_shanak
Newbie Poster
15 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

select current_timestamp from dual;

karant
Newbie Poster
9 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 
SELECT TO_CHAR(SYSDATE, 'HH24:MI:SS PM') As "TIME" from dual
karant
Newbie Poster
9 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You