[Asterisk-Users] Re: OT : For the SQL gurus..

WipeOut wipe_out at onetel.com
Mon Nov 10 10:32:11 MST 2003


Thorsten Lockert wrote:

>SELECT *, LENGTH(code)
>FROM a
>WHERE code = left('00442085673456', LENGTH(code))
>ORDER BY LENGTH(code) DESC
>LIMIT 1; 
>

Awesome, thanks Thorsten..




More information about the asterisk-users mailing list