Use the TIMESTAMP type to define a column in a table : 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 
Use the TIMESTAMP type to define a column in a table



SQL> -- Use the TIMESTAMP type to define a column in a table
SQL>
SQL> CREATE TABLE purchases_with_timestamp (
  2    product_id INTEGER ,
  3    customer_id INTEGER ,
  4    made_on TIMESTAMP(4)
  5  );

Table created.

SQL>
SQL>
SQL> desc purchases_with_timestamp;
 Name                                                                                                  Null?    Type
 ----------------------------------------------------------------------------------------------------- -------- --------------------------------------------------------------------
 PRODUCT_ID                                                                                             NUMBER(38)
 CUSTOMER_ID                                                                                            NUMBER(38)
 MADE_ON                                                                                                TIMESTAMP(4)

SQL>
SQL> drop table purchases_with_timestamp;
           
       
Related examples in the same category
1. Use the Timestamp data type in a table and insert data
2. Compare data and timestamp
3. INSERT statement adds a row with the TIMESTAMP keyword to supply a datetime literals
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_a2_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.