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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -