I Created the db with phpmyadmin and created 8 columns i forgot to create date column i tried to create it with this code and i got this
ALTER TABLE "users" ADD "cdate" DATE
1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use
near ‘”users” ADD “cdate” DATE’ at line 1
4
Answers
you can add columns to existing table using phpmyadmin
below the table structure you can find add [num] columns
and since you asked
Read about this in the documentation https://dev.mysql.com/doc/refman/8.0/en/alter-table.html
You can Use phpmyadmin to add a new column without any code
Or Use this :
you dont need any qoute
Backticks are to be used for table and column identifiers, but are only necessary when the identifier is a reserve word of mysql