MySQL Forums
Forum List  »  Newbie

Mysql user-defined function
Posted by: Programmer Programmer
Date: May 08, 2015 02:36PM

I'm a newbie in mysql programming, and i would create a mysql function myFunction with a string parametre; that query a table and reconstruct a string from the query-result like this example :

myTable
---------------
|id | value |
---------------
| id1 |value1 |
| id2 |value2 |
| id3 |value3 |
| id4 |value4 |
---------------
Calling this function is like this

myFunction('value2#value1#value4')

and must return

'id2#id1#id4'

Thank you very much

Options: ReplyQuote


Subject
Written By
Posted
Mysql user-defined function
May 08, 2015 02:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.