Subject | Re: [ib-support] Dynamic SQL Error |
---|---|
Author | Arno Brinkman |
Post date | 2002-10-01T11:45:45Z |
Hi,
in Interactive SQL, i get the following error
error. Its because of the ";" in my data that it terminates first line of
SQL statement.
This isn't related to your problem, so far as i can see !
of my SQL statement,
'240', NULL, NULL, NULL, '007;', NULL);
'240', NULL, NULL, NULL,
'007;', NULL, );
^^^^^^
to execute one at a time. The SQL statement terminates at "007;". How do i
go about adding this special character in my table.
It sounds to me that the NULL and comma ( NULL, ) is the problem!
Regards,
Arno
> I have an insert statement where i pass literal values. And one of thefield value has a ";" semicolon as a part of data. But as i run the script
in Interactive SQL, i get the following error
> Dynamic SQL error,http://bdn.borland.com/article/0,1410,25443,00.html for details on this
> SQL Error Code = -104
> Token unknown - line 2, char -1
>
> I read Borlands document
error. Its because of the ";" in my data that it terminates first line of
SQL statement.
This isn't related to your problem, so far as i can see !
> But my question is how do i have an escape char for this semicolon in mydata. So that i dont get this error in a script file. Following is a sample
of my SQL statement,
>COCXPTR, CODXPTR, DIEXPTR, DIBXPTR) VALUES ('E4', 'MAZET M', '24', 'FR',
> INSERT INTO ptrxlab(MAGXPTR, TOUXPTR, ZIPXPTR, PAYXPTR, COAXPTR, COBXPTR,
'240', NULL, NULL, NULL, '007;', NULL);
>COCXPTR, CODXPTR, DIEXPTR, DIBXPTR) VALUES ('E4', 'MAZET M', '24580', 'FR',
> INSERT INTO ptrxlab(MAGXPTR, TOUXPTR, ZIPXPTR, PAYXPTR, COAXPTR, COBXPTR,
'240', NULL, NULL, NULL,
'007;', NULL, );
^^^^^^
>have about 124 such lines of exceptional insert statments, which i dont want
> These queries execute fine when i execute them one line at a time. But i
to execute one at a time. The SQL statement terminates at "007;". How do i
go about adding this special character in my table.
It sounds to me that the NULL and comma ( NULL, ) is the problem!
Regards,
Arno