mainrotor
asked on
I have a question regarding the syntax for creating a table in Oracle
Hi Experts,
I have a question regarding the syntax for creating a table in Oracle. In particular, with my date field. Please see my create table syntax below and tell me if it's correct. Thank you very much in advance.
mrotor
I have a question regarding the syntax for creating a table in Oracle. In particular, with my date field. Please see my create table syntax below and tell me if it's correct. Thank you very much in advance.
CREATE TABLE INVOICE_TEST
(INVOICE_NO NUMBER (5),
INVOICE_DATE DATE, ‘MM/DD/YYYY’,
CUSTOMER _ID NUMBER (5),
QTY NUMBER (6),
NET_SALES NUMBER (6));
mrotor
Dates (and timestamps) have their own internal format that has NOTHING to do with how you enter or present those values.
mm/dd/yyyy is a TEXT format for when you extract a date value and display it using TO_CHAR
whether implicitly or explicitly
mm/dd/yyyy is a TEXT format for when you extract a date value and display it using TO_CHAR
whether implicitly or explicitly
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
CREATE TABLE INVOICE_TEST
(INVOICE_NO NUMBER (5),
INVOICE_DATE DATE,
CUSTOMER_ID NUMBER (5),
QTY NUMBER (6),
NET_SALES NUMBER (6));