igorlouback12 0 Posted January 24, 2016 INSERT INTO `mob_proto` VALUE ('101', 'Cão Selvagem', 'Cão Selvagem', '0', '0', '0', '1', '', '', '0', 'ANIMAL', '', '0', 'stray_dog', '0', '3', '6', '5', '2', '20', '24', '126', '6', '7', '1800', '2700', '150', '4', '100', '100', '0', '2000', '175', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '70104', '0', '0', '0', '0', '0', '0', '0', '0', '0'); galera essa querry não pega por q? Share this post Link to post Share on other sites
0 Annie 1,207 Posted January 24, 2016 Query* Se não mostrares a estrutura da tabela nem o erro que tens é impossível adivinharmos. Share this post Link to post Share on other sites
0 igorlouback12 0 Posted January 24, 2016 desculpe-me esqueci INSERT INTO `mob_proto` VALUE ('101', 'Cão Selvagem', 'Cão Selvagem', '0', '0', '0', '1', '', '', '0', 'ANIMAL', '', '0', 'stray_dog', '0', '3', '6', '5', '2', '20', '24', '126', '6', '7', '1800', '2700', '150', '4', '100', '100', '0', '2000', '175', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '70104', '0', '0', '0', '0', '0', '0', '0', '0', '0'); [Err] 1136 - Column count doesn't match value count at row 1 segue aqui o erro Share this post Link to post Share on other sites
0 Annie 1,207 Posted January 24, 2016 Estás a inserir uma query com mais (ou menos) valores do que as colunas que tens na tabela. Vê se a query antes tem definido o VALUE para cada coluna e compara com a tua tabela, vê qual é a coluna que está a mais ou a menos e depois apagas o valor dela na query. Share this post Link to post Share on other sites
0 igorlouback12 0 Posted January 24, 2016 obrigado :) entendi Share this post Link to post Share on other sites
INSERT INTO `mob_proto` VALUE ('101', 'Cão Selvagem', 'Cão Selvagem', '0', '0', '0', '1', '', '', '0', 'ANIMAL', '', '0', 'stray_dog', '0', '3', '6', '5', '2', '20', '24', '126', '6', '7', '1800', '2700', '150', '4', '100', '100', '0', '2000', '175', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '0', '70104', '0', '0', '0', '0', '0', '0', '0', '0', '0');
galera essa querry não pega por q?
Share this post
Link to post
Share on other sites