1,排在最前面用order by name nulls first;(name是字段名)

 

eg:select t.name,t.code from table  t where t.code!='1' order by t.name nulls first;

 

2,排在最后面order by name nulls last;(name是字段名)

 

eg:select t.name,t.code from table t where t.code!='1' order by t.name nulls last;

相关文章:

  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-07-20
  • 2021-12-23
猜你喜欢
  • 2021-05-28
  • 2021-04-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案