Hi Andrew,
Thanks a lot. it really worked very well.
Sanjeev
On 10/26/07, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>
> This should work:
>
> ORDER BY CASE WHEN id = 3 THEN 0 ELSE 1 END, name
>
> Andrew
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.
This should work:
ORDER BY CASE WHEN id = 3 THEN 0 ELSE 1 END, name
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sanjeev N wrote:
Hi,
Consider the following case
mysql> select *from names;
++-++
| id | name| phone |
++-++
| 1 | sanju | 984565 |
| 2 | sanjeev | 997223 |
| 3 | puttu | 990058 |
| 4 | raju| 9448110
Hi,
Consider the following case
mysql> select *from names;
++-++
| id | name| phone |
++-++
| 1 | sanju | 984565 |
| 2 | sanjeev | 997223 |
| 3 | puttu | 990058 |
| 4 | raju| 944811 |
++
4 matches
Mail list logo