I've got a problem with the following request:
update
pac_boolean_code
set
BOO_CODE = 1
where
PAC_PERSON_ASSOCIATION_ID = '2477764'
and
DIC_BOOLEAN_CODE_TYP_ID = 'E-CALENDAR';
When I execute it in Toad, it works fine. But as soon as I try to use it through PHP using oci_execute, it returns me the "ORA-00911: invalid character" error.
I can't figure what is the problem as all fields are correct and it works when I use it directly in Toad.
If I remove the second where clause (DIC_BOOLEAN_CODE_TYP_ID), it also works !
Any idea to help me ?
Remove the semi-colon character from the end of your statement, as documented on the oci_parse
manual page :
SQL statements should not end with a semi-colon (";"). PL/SQL statements should end with a semi-colon (";").
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.