MySQL Tables
Posted by:
Landon Byrd
Date: September 01, 2022 08:47AM
I am trying to create a table in a database but keep getting an error, my code is below.
mysql> CREATE TABLE CRUISE
-> ( Column Name VARCHAR(20) NOT NULL,
-> Data Type VARCHAR(20) NOT NULL,
-> Length INT,
-> Decimal Places INT,
-> Primary Key VARCHAR(20) NOT NULL
-> );
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Column Name VARCHAR(20) NOT NULL,
Data Type VARCHAR(20) NOT NULL,
Length IN' at line 2
Any help is much appreciated.
Subject
Written By
Posted
MySQL Tables
September 01, 2022 08:47AM
September 01, 2022 11:19AM
September 02, 2022 10:45AM
September 02, 2022 03:56AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.