I'm using Oracle's SQL Developer to do the following:
Have also tried:
but both bring back a mmddyy result - 01/06/16, if I remember correctly.
What do I do to have only mmyy output?
I checked the Oracle documentation & check extensively online but could not find the answer.
Can anyone help?
Thanks in advance
Code:
CREATE TABLE Account (
AccountID INT NOT NULL,
CreditID INT NOT NULL,
CardType VARCHAR(15) NOT NULL,
ExpiryDate DATE,
PRIMARY KEY (AccountID),
CONSTRAINT fk_credit_account FOREIGN KEY (CreditID) REFERENCES CreditCard
)
-- Table created
-- ExpiryDate not returning as mm/yy
INSERT INTO Account (AccountID,CreditID,CardType,ExpiryDate);
VALUES (2001,1,'Visa',to_date('06/16','MM/YY'));
Code:
INSERT INTO Account(AccountID,CreditID,CardType,ExpiryDate)
VALUES (2001,1,'Visa',to_date('0616','MM/YY'));
What do I do to have only mmyy output?
I checked the Oracle documentation & check extensively online but could not find the answer.
Can anyone help?
Thanks in advance
Comment