I'm just trying to set the expire_date_membership to a date that is going to be 2 years after the current date, but don't seam to get the syntax right. Can someone help?
CREATE TABLE Members (
pid INTEGER NOT NULL,
registration_date_membership DATE DEFAULT CURRENT_DATE,
expire_date_membership DATE DEFAULT (CURRENT_DATE + 24 MONTHS),
membership_fees DOUBLE,
overdue_fees DOUBLE,
PRIMARY KEY(pid),
FOREIGN KEY (pid) REFERENCES Person)
Error message:
DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0104N An unexpected token "DEFAULT" was found following "ate_memebership DATE". Expected tokens may include: "CHECK". SQLSTATE=42601