Insert statement converts text value to date type value
SQL>
SQL>
SQL> CREATE TABLE purchase (
2 product_name VARCHAR2(25),
3 salesperson VARCHAR2(3),
4 purchase_date DATE,
5 quantity NUMBER(4,2));
Table created.
SQL>
SQL> INSERT INTO purchase VALUES ('Small Widget', 'CA', '14-JUL-03', 1);
1 row created.
SQL> INSERT INTO purchase VALUES ('Medium Widget', 'BB', '14-JUL-03', 75);
1 row created.
SQL> INSERT INTO purchase VALUES ('Product Number', 'GA', '14-JUL-03', 2);
1 row created.
SQL> INSERT INTO purchase VALUES ('Small Widget', 'GA', '15-JUL-03', 8);
1 row created.
SQL> INSERT INTO purchase VALUES ('Medium Widget', 'LB', '15-JUL-03', 20);
1 row created.
SQL> INSERT INTO purchase VALUES ('Round Station', 'CA', '16-JUL-03', 5);
1 row created.
SQL>
SQL> DROP TABLE purchase;
Table dropped.
SQL>
SQL>
SQL>
Related examples in the same category