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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -