Aktív témák

  • Briganti

    tag

    meirt van az hogy van egy ien query-m hogy:

    INSERT INTO `receptie_materia_temp` ( `nr_fact`, `cod_denumire`, `um`, `cantitate`, `pu`, `total`, `tva`, `total2` ) VALUES ('sdfsdf', 'sdfsdf', 'sdfsdf', '34535', 'sdfsdfsdf', 'sdfsdf', 'sdfsdf', 'sdfsdf')

    ezt hozzaadja siman, de en a tablazathoz hozzaadtam meg egy oszlopot, es atalakitom a queryt ugy hogy a total2 melle beirom az adaos-t, es values-hez is irok a vegere meg egy erteket akkor ugyfog kinezni hogy:

    INSERT INTO `receptie_materia_temp` ( `nr_fact`, `cod_denumire`, `um`, `cantitate`, `pu`, `total`, `tva`, `total2`, 'adaos' ) VALUES ('sdfsdf', 'sdfsdf', 'sdfsdf', '34535', 'sdfsdfsdf', 'sdfsdf', 'sdfsdf', 'sdfsdf', 'asdadasd')

    es igy mar nem adja hozza, azt irja ki hogy:

    #1064 - 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 ''adaos' ) VALUES ('sdfsdf', 'sdfsdf', 'sdfsdf', '34535', 'sdfsdf

    utanna neztem, s ezt az errort akkor adja mikor nemjol hasznalom a ''reserver word'' -kat ... vegig futottam a listan de nem talaltam semmi oan reserved word-t ... mi lehet a baj?

Aktív témák