Quote:
Originally Posted by r937
as for the "something neutral" option that you are looking for, i don't do php myself but i do know that it has an IF statement,
|
i mentioned php as an example, i just looking for a sql statement solution.
& about neutral, in phpMyAdmin when you click on SQL tab, it insert a sql satement like "SELECT * FROM tb1 WHERE 1", i called "WHERE 1" a neutral part, it does nothing. i wonder maybe something like that exist for ORDER BY that i always pass to function, when i don't need sorting & off course i can't pass nothing!
Quote:
Originally Posted by r937
omit the ORDER BY clause entirely
|
suppose it not possible, cause i can't change some sections on a big app, designed by someone else.
i searched a lot & it seems there is not something for this. however it's not a big problem, i just was curious if somthing like that exists, tanX guys