How to use a user-defined function which generates result set in a SQL statement

Reply

Join Date: Sep 2008
Posts: 15
Reputation: cy163 is an unknown quantity at this point 
Solved Threads: 0
cy163 cy163 is offline Offline
Newbie Poster

How to use a user-defined function which generates result set in a SQL statement

 
0
  #1
Oct 15th, 2008
Hello ALL,

I am new to MySQl. I am using MySQL ver 5.1.28
I have got two questions.
(1) Can I make a user-defined function return a tabular result.(say, a list of person name)

(2) Can I call the function in a select statement, like


  1. SELECT *
  2. FROM
  3. Employee_List LEFT JOIN Employee_WorkList
  4. ON
  5. Employee_List.Name = Employ_WorkList.Name
  6. WHERE
  7. Employee_List.Name IN Tabular_Result_BY_UserFunction;
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC