rbragg Posted August 24, 2007 Share Posted August 24, 2007 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 More sharing options...
HuggieBear Posted September 24, 2007 Share Posted September 24, 2007 Oracle doesn't have the concept of a LIMIT clause, so your syntax is incorrect. Regards Huggie Link to comment https://forums.phpfreaks.com/topic/66497-solved-sql-command-not-properly-ended/#findComment-353964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.