Results 1 to 1 of 1
Jan 30, 2011, 08:24 #1
- Join Date
- Feb 2009
- Kathmandu, Nepal
- 0 Post(s)
- 0 Thread(s)
How to: User defined function returns a result set
Is it possible to make a user defined function return a result set? How?
$rs = mysql_query("SELECT udf_students(2011);");
I know how to write user defined functions in mysql.
But cannot return a list of data into a result set that can be assigned to PHP resource variable.
This would help me hide a lot of business logic inside the database itself.
And save a big time.