coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 19, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 48 guests online

Newest Member

nbewwmbxog

Hit Counter
11536472 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620073
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

how to select rows in an Oracle database by timestamp
Description

To find rows in an Oracle database from the last 5 days:

select * from TABLENAME where TIMESTAMP > (sysdate-5);

To find rows from the last hour:

select * from TABLENAME where TIMESTAMP > (sysdate-(1/24));

To find rows from the last minute:

select * from TABLENAME where TIMESTAMP > (sysdate-(1/(24 * 60)));

To find rows from the last second:

select * from TABLENAME where TIMESTAMP > (sysdate-(1/(24 * 60 *60)));

To find rows from the last 12 minutes:

select * from TABLENAME where TIMESTAMP > (sysdate-(12/(24*60)));
Example

select * from TABLENAME where TIMESTAMP > (sysdate-5);

Return to search results

Random coolcommands

coolcommand: gr_osview - a graphical system monitor for SGI IRIX
Example: gr_osview -a
[show me the details]
coolcommand: lssyscfg command will list the system configuration
Example: lssyscfg -r [ sys | frame | alpar | lpar | prof | sysprof ] -n object-name [ | —all ] [ -m "managed-system" ] [ -p "partition-name" ] [ -F format | -z ] [ —help ]
[show me the details]
coolcommand: datapath query adapter (device) - Hitachi SAN - HDLM
Example: datapath query adapter 0
[show me the details]
coolcommand: swinstall - how to install depot files in HP/UX
Example: swinstall -s /tmp/perl.depot
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51939
Category AIX49005
Category General UNIX47490
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum