Jump to content

[SOLVED] SQL command not properly ended


Recommended Posts

The following gives me:

 

HP Warning:  ociexecute(): OCIStmtExecute: ORA-00933: SQL command not properly ended

 

<?php
$queryLastCall = "
SELECT call_num
FROM schema.table
ORDER by call_num DESC
LIMIT 1
"; 
$lastCall = ociparse($connect, $queryLastCall);
ociexecute($lastCall);

$callNum = ociresult($lastCall, "CALL_NUM");
?>

 

It may be of importance to note that I have many queries on this page and this is the only one where I do ORDER and LIMIT clauses. Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/66497-solved-sql-command-not-properly-ended/
Share on other sites

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.