Hello I am trying to know iF a year iS a leap-year, because i only want leap years to be inserted on the table olympics, but an error keeps coming up.
This is my attempt in SQL:
ALTER TABLE OLYMPICS
ADD CONSTRAINT LEAP_YEAR
CHECK((YEAR%4)=0);
And this is the error:
- 00000 - "invalid character" *Cause: identifiers may not start with any ASCII character other than letters and numbers. $#_ are also allowed after the first character. Identifiers enclosed by doublequotes may contain any character other than a doublequote. Alternative quotes (q'#...#') cannot use spaces, tabs, or carriage returns as delimiters. For all other contexts, consult the SQL Language Reference Manual.