I came across a problem when we want to set the default language to English in a dropdown list. Such as:

Chinese Danish English German Japanese Swedish

We want the English come to the first, and the rest follows That’s:

English //go to first Chinese Danish German Japanese Swedish

 

We can do this by uniting the two SQL result sets:

select * from country where lang='English' union select * from country where lang<>'English'

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2021-07-25
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2021-10-15
  • 2022-01-25
  • 2021-08-31
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案