yes, create a UDF.
look at the mysql source for examples...
On Mon, 14 Nov 2005, Horst [iso-8859-1] J?ger wrote:
Hi,
I have a nice little code snippet in pseudocode, which calculates the
levenshtein-distance between 2 words.
Is it possible to implement that code in mysql like in
"select word1,word2 from myTable order by dist(word1,word2 )"
where dist is the function mentionend above which takes 2 strings and returns
an int?
Weird question??? :)
Thanks
Horst
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager 7 West 24th Street #100 -
- +1 (443) 269-1555 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately. Any other use of the email by you
is prohibited.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]