Compare data and timestamp : Timestamp « Data Type « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Cursor
6. Data Type
7. Date Timezone
8. Hierarchical Query
9. Index
10. Insert Delete Update
11. Numeric Math Functions
12. Object Oriented Database
13. PL SQL
14. Regular Expressions
15. Report Column Page
16. Result Set
17. Select Query
18. Sequence
19. SQLPlus
20. Store Procedure Function
21. Subquery
22. System Tables
23. Table
24. Table Joins
25. Trigger
26. User Previliege
27. View
28. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Oracle PL / SQL » Data Type » Timestamp 
Compare data and timestamp



SQL> -- use timestamp
SQL>
SQL> create table company_events (
  2        event_name         varchar2100 ),
  3        event_date         date,
  4        event_timestamp    timestamp )
  5      /

Table created.

SQL>
SQL> insert into company_events event_name, event_date, event_timestamp )
  2                      values 'Name 1', sysdate, sysdate )
  3      /

row created.

SQL> column event_name      format a28
SQL> column event_date      format a18
SQL> column event_timestamp format a28
SQL>
SQL> select event_name, to_char(event_date, 'DD-MON-YY HH24:MI:SS') event_date,
  2         event_timestamp
  3        from company_events
  4      /

EVENT_NAME                   EVENT_DATE         EVENT_TIMESTAMP
---------------------------- ------------------ ----------------------------
Name 1                       09-SEP-06 16:12:40 09-SEP-06 04.12.40.000000 PM

SQL>
SQL>
SQL> drop table company_events;

Table dropped.

SQL>
SQL>
           
       
Related examples in the same category
1. Use the Timestamp data type in a table and insert data
2. INSERT statement adds a row with the TIMESTAMP keyword to supply a datetime literals
3. Use the TIMESTAMP type to define a column in a table
4. TIMESTAMP WITH TIME ZONE type extends TIMESTAMP to allow you to store a time zone
5. TIMESTAMP(4) WITH TIME ZONE
w_w__w_.___j_a__v___a___2__s__.__c___o_m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.