On Tuesday 24 February 2004 23:11, Adam Denenberg wrote:

>    my $sql = "select $f_preference, $f_value  from $f_table where ".
>         " $f_username = 'GLOBAL' union ".
>         " select $f_preference, $f_value  from $f_table where ".
>         " $f_username = '[EMAIL PROTECTED]' union ".
>         " select $f_preference, $f_value  from $f_table where ".
>         " $f_username = ".$dbh->quote($domain). " union " .
>         " select $f_preference, $f_value  from $f_table where ".
>         " $f_username = ".$dbh->quote($username);

I'm not so familiar with SQL so I choose to do the sorting in perl. B-)

-- 
So long... Fuzz

Reply via email to