![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a mysql query, "SELECT * FROM task ORDER BY duedate ASC", where "duedate" is a unix_timestamp and can be NULL. I want any NULL results to be at the end of the list, how might I do this? Thanks. |
#3
| |||
| |||
|
|
Mark wrote: I have a mysql query, "SELECT * FROM task ORDER BY duedate ASC", where "duedate" is a unix_timestamp and can be NULL. I want any NULL results to be at the end of the list, how might I do this? Thanks. Have a look at the bottom of this post: http://groups.google.com/group/alt.p...0d115e698ca173 |
#4
| |||
| |||
|
|
strawberry wrote: Mark wrote: I have a mysql query, "SELECT * FROM task ORDER BY duedate ASC", where "duedate" is a unix_timestamp and can be NULL. I want any NULL results to be at the end of the list, how might I do this? Thanks. Have a look at the bottom of this post: http://groups.google.com/group/alt.p...0d115e698ca173 IF(l_name IS NULL or l_name='', 1, 0) AS isnull FROM students ORDER BY isnull ASC, l_name ASC;"; what is the 1,0 for after name='' ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |