Here is the code. I´m using MYSQL. It throws a syntax error, and i can´t find the error in this simple command.
insert into l_mes (id_mes, desc_mes, id_anio)
values (201601, Ene 2016, 2016), (201602, Feb 2016, 2016)
Here is the code. I´m using MYSQL. It throws a syntax error, and i can´t find the error in this simple command.
insert into l_mes (id_mes, desc_mes, id_anio)
values (201601, Ene 2016, 2016), (201602, Feb 2016, 2016)
You need '
ticks (single quotes) around 'strings'
:
insert into l_mes (id_mes, desc_mes, id_anio)
values (201601, 'Ene 2016', 2016),
(201602, 'Feb 2016', 2016)
Assuming data types here, you're missing quotes around your string values.
insert into l_mes (id_mes, desc_mes, id_anio)
values (201601, 'Ene 2016', 2016), (201602, 'Feb 2016', 2016)