Re: Sorting MySQL queries

From: Date: Tue, 07 Nov 2006 09:40:19 +0000
Subject: Re: Sorting MySQL queries
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-244305@lists.php.net to get a copy of this message
Richard Lynch wrote: > Actually, super-recent MySQL has user-defined functions, I think, so > the previous solution by another post may be better in that case. MySQL since way back has allowd UDF's but you need to write them in C and compile them up as .so's and then call the "create function" syntax to register them in the func table. It's very handy and we've written a few UDFs and Aggregate UDFs to make our lives easier. Newer versions of MySQL can maybe create simpler UDFs from built in commands like the Postgres example earlier in the thread?? Sounds interesting and handy. Unf. unlike in Postgres, I don't think you can create "functional indexes" atlhough that too sounds mega handy! Given me food for SQL thought :) Col.

« previous php.general (#244305) next »