按sort排序,sort为空的在后面
select * from 表名  order by (case when sort is null or sort='' then 1 else 0 end),sort
 
 
 
select  t.*, t.rowid
  from hs_tr_goods_attach_rel t
 order by (case
            when t.goods_order is null or t.goods_order = '' then
             1
            else
             0
          end),
          t.goods_order

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-09-08
  • 2021-05-24
  • 2022-02-13
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2021-04-11
  • 2021-09-27
  • 2022-01-15
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案