English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to use this command:
select * from table1; insert into table1('c1') values('asd');
but it shows me an error:
Failed to execute query: 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 '; insert into table1(\'c1\') values(\'asd\')'

2007-02-10 07:54:19 · 3 answers · asked by vb_4_net 2 in Computers & Internet Programming & Design

3 answers

The problem isn't with the;.

If you run the commands separately, you'll get an error with the insert into table1 part.

Take the single quotes away from the column name (c1) and it should work for you.

select * from table1; insert into table1(c1) values('asd');

2007-02-10 11:44:12 · answer #1 · answered by Vegan 7 · 1 0

execute them one at a time, one after the other, in two separate commands.

2007-02-10 08:00:25 · answer #2 · answered by MinstrelInTheGallery 4 · 0 0

who knows lol

2007-02-10 07:56:52 · answer #3 · answered by walter_b_marvin 5 · 0 0

fedest.com, questions and answers