mysql - Error Code: 1136. Column count doesn't match value count -


the following query triggers error:

error code: 1136. column count doesn't match value count @ row 1.

why getting error?

set @id_country = (select id_country  prestashop147.ps_country  iso_code = 'br');  set @id_state = (select id_state  ps_state  iso_code = 'mg');  insert ps_address(id_address, id_country, id_state, id_customer, id_manufacturer, id_supplier, alias, company, lastname, firstname, address1, address2, postcode, city, other, phone, phone_mobile, vat_number, dni, date_add, date_upd, active, deleted) values (null, @id_country, @id_state, 2, 0, 0, 'endereço', 'sobrenome', 'nome', 'rua canada, 71', 'complemento', 'cep', 'cidade', null, 'telefone', 'celular', null, null, null, null, 1, 0); 

you have 23 columns in insert, supply 22 values


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -