Last active
December 15, 2015 09:29
-
-
Save AbinashBishoyi/5238389 to your computer and use it in GitHub Desktop.
Thanks to Aka...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $qry = "SELECT * FROM table WHERE UPPER(name1) LIKE DECODE(NVL('" . $start . "',0),0,'%" . $contain . "%','" . $start . "%') AND UPPER(name1) LIKE DECODE(NVL('" . $contain . "',0),0,'" . $start . "%','%" . $contain . "%') ORDER BY ....."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment