mysql - How to resolve Error Code: 1064. You have an error in your SQL syntax; -
enter code herei'm getting following error when try run query.
error:error code: 1064. have error in sql syntax; check manual corresponds mysql server version right syntax use near '( add last_name varchar(20) )' @ line 2
query:
alter table durgesh.student1
(
add last_name varchar(20)
);
if you're using mysql, right syntax is:
alter table durgesh.student1 add column last_name varchar(20);
more info here
Comments
Post a Comment