Re: Query with DISTINCT - logic?
Posted by:
P. Boomer
Date: November 19, 2008 12:15PM
Thanks for your help.
This returns no results:
$query = ('SELECT * FROM `demo` WHERE `IDENTIFIER` = '.'"'.$12345.'" ORDER BY `STREET ADDRESS CITY` GROUP BY `PHONE NUMBER`\G');
This works, but obviously only returns the unordered records:
$query = ('SELECT * FROM `demo` WHERE `IDENTIFIER` = '.'"'.$12345.'" GROUP BY `PHONE NUMBER`');
But if I add the \G, it returns nothing.
My problem is that if I use the PHP syntax that I've found on the Web for stating multiple conditions in a query, it never seems to work.
Subject
Views
Written By
Posted
3201
November 17, 2008 11:35AM
2079
November 18, 2008 10:21AM
Re: Query with DISTINCT - logic?
2030
November 19, 2008 12:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.