Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oracle query on time

Query:

SELECT col1 
  FROM table1 
 WHERE TRUNC(created_date) = TRUNC(sysdate) 

If the query take 10 minutes to execute and query was run @ 11.55 PM -- What will be the result of query? Will the query return data, on created_date when query is submitted or when the result is received or depends on some other factor?

like image 535
code990 Avatar asked Jul 01 '26 15:07

code990


1 Answers

You will get the data as of the date that the query was submitted in this case.

like image 119
Justin Cave Avatar answered Jul 05 '26 02:07

Justin Cave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!