On Thursday, 11. April 2002 02:11, Fei Chen wrote:

> How do I write a UDF to handle a entire tuple, e.g. is it possible to have
> select my_udf(*) from myTable;
> ?

Parmeters in the UDF could also be fields from a table.

> Also, is there a way for a UDF to return a data structure, say, a multi
> dimensional array? Or do I need to write some stringify function for the
> UDF to return?

UDF functions can return STRING (char *), INTEGER (long) OR REAL (double).
Please read the Manual: http://www.mysql.com/doc/A/d/Adding_UDF.html

Regards

Georg

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to