Quote:
Originally Posted by gompuok
What i want is, If there is a name value passes, apply it, if not, return all the name (no filter).
|
this is real easy, and it's not a mysql question
if there is a name value passed in, run this --
Code:
SELECT columns FROM users WHERE name = ${name}
if there is no name value passed in, run this --
Code:
SELECT columns FROM users