SQL>CREATE TABLE student(ID INT, Name VARCHAR(20), Percentage INT,
Location VARCHAR(20), DateOfBirth DATE);
SQL> INSERT INTO student(ID, Name, Percentage, Location, DateOfBirth)
VALUES(1, "Manthan Koli", 79, "Delhi", "2003-08-20");
Getting this error:
ERROR at line 1:
ORA-00984: column not allowed here
In Oracle, it is a single quote you use to enclose strings (as specified in the SQL standard).
Apart from that, Oracle recommends us to use
VARCHAR2instead ofVARCHAR.Finally, when inserting dates, don't insert strings - use date literal (as my example shows), or
TO_DATEfunction with appropriate format model.