Problemas con \
Publicado por SnakeLogan (1 intervención) el 17/11/2003 14:08:15
Buenas a todos.
Utilizo MySQL con PB y me da un error con esta sentencia SQL:
SELECT MAX(nom_campo)
INTO :var
FROM tabla
WHERE nom_campo = :var;
El error es el siguiente:
SQLSTATE = 37000
[MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]
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 \'( COD_CONTACTO ) FROM NZ_CONTACTOS WHERE COD_CLIENTE =1\'
Alguien sabe por que pasa esto ???
Gracias y un saludo.
Utilizo MySQL con PB y me da un error con esta sentencia SQL:
SELECT MAX(nom_campo)
INTO :var
FROM tabla
WHERE nom_campo = :var;
El error es el siguiente:
SQLSTATE = 37000
[MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]
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 \'( COD_CONTACTO ) FROM NZ_CONTACTOS WHERE COD_CLIENTE =1\'
Alguien sabe por que pasa esto ???
Gracias y un saludo.
Valora esta pregunta


0