Some practical statement records of MySql (continuous records)

to sort


to sort

For example: when using the ascending order of creation time, and want to put the empty field value at the end, you can write like this

select * from test t order by t.overtime_at is null, t.overtime_at

Guess you like

Origin blog.csdn.net/weixin_42303757/article/details/126460967