With this code:
CREATE TABLE STUDENT(
StudentID integer, primary key
StudentName char(25) NOT NULL)
I am getting the 1064 error about char(25) but don't know how to fix it in MySQL workbench.
Answer-
CREATE TABLE STUDENT(StudentID integer, primary key StudentName char(25) NOT NULL)
The correct Query-
CREATE TABLE STUDENT(StudentID integer, StudentName char(25) NOT NULL,primary key(StudentName))
Note- Please do upvote, if any problem then comment in
box sure I will help.
Get Answers For Free
Most questions answered within 1 hours.