I’m working on a project for my class.
How can I enter a value into a table with the datatype "DATE"?
I tried using apostrophes, and without it.
I kept getting errors.
I’m using MySql.
Edit: I’m getting an Error 1054.
Error Code: 1054. Error Code: 1054. Unknown column ‘BorrowDate’ in ‘field list’
Columns and their datatype
Values into table
I tried searching for the answer but I felt more confused since I’m still a newbie when it comes to learning SQL.
2
Answers
Try adding a semicolon instead of a comma at the end. I applied the same code and it seems to work well. Or check whether you have entered a duplicate primary key value.
Result Image
Here is an Example:
https://www.mysqltutorial.org/mysql-basics/mysql-insert-date/