Answer the question
In order to leave comments, you need to log in
Php+Oracle increment by invalid variable name/number, how to write correctly?
$compiled = oci_parse($conn, "alter sequence SQ_TEST increment by :id");
oci_bind_by_name($compiled, ":id", $VAL);
$result =oci_execute($compiled, OCI_DEFAULT);
Answer the question
In order to leave comments, you need to log in
According to the doc , he slips the automatic type SQLT_CHR there, which will automatically be cast to the desired type in the case of SELECT. Because you have DDL here, I think that you need to explicitly specify type=SQLT_INT.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question