当前位置:网站首页>sql语句多字段多个值如何进行排序
sql语句多字段多个值如何进行排序
2022-08-05 01:56:00 【CSDN问答】
sql语句多字段多个值如何进行排序?需求是查询所有的列表,然后根据出发地和目的地进行排序,我是用case when 语法总是报错
sql语句如下
select swco.id,swco.order_type,swco.goods_type_id,swco.departure,swco.bounty,swco.goods_number,swco.goods_name,swco.destination,swco.goods_value,swco.goods_weight,swco.order_status,swco.end_time,swco.start_time from sys_we_chat_order swco where swco.deleted =0 order by case when departure ='北京' and destination ='衡水' then '北京' when departure ='北京' then '衡水' when destination ='衡水' then '衡水', swco.create_time desc报错信息如下

我这么写有什么问题吗,或者其他方法如何实现
边栏推荐
- Short domain name bypass and xss related knowledge
- 深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白
- Greenplum Database Fault Analysis - Can a Soft Connection Be Made to the Database Base Folder?
- 【Redis】Linux下Redis安装
- pytorch的使用:卷积神经网络模块
- Transfer Learning - Distant Domain Transfer Learning
- oracle将restful接口封装到视图中
- Live playback including PPT download | Build Online Deep Learning based on Flink & DeepRec
- .Net C# 控制台 使用 Win32 API 创建一个窗口
- Why is this problem reported when installing oracle11
猜你喜欢

缺陷检测(图像处理部分)

Utilities 
【Word】Word公式导出PDF后出现井号括号#()错误

深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白

【机器学习】21天挑战赛学习笔记(二)

Leetcode brushing questions - 22. Bracket generation

测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?

(17) 51 MCU - AD/DA conversion

快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名

Why is this problem reported when installing oracle11
随机推荐
1349. Maximum number of students taking the exam Status Compression
Object.defineProperty实时监听数据变化并更新页面
[Redis] Redis installation under Linux
Domain Driven Design - MDD
GC高德坐标和百度坐标转换
张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
迁移学习——Distant Domain Transfer Learning
优化Feed流遭遇拦路虎,是谁帮百度打破了“内存墙”?
如何基于OpenVINO POT工具简单实现对模型的量化压缩
[Word] #() error occurs after Word formula is exported to PDF
Understand the recommendation system in one article: Recall 06: Two-tower model - model structure, training method, the recall model is a late fusion feature, and the sorting model is an early fusion
【PyQT5 绑定函数的传参】
金仓数据库 KingbaseES V8 GIS数据迁移方案(3. 基于ArcGIS平台的数据迁移到KES)
原生js实现多选框全部选中和取消效果
直播预告|30分钟快速入门!来看可信分布式AI链桨的架构设计
Is DDOS attack really unsolvable?Do not!
C# const readonly static 关键字区别
How to create an rpm package
[GYCTF2020]EasyThinking
Three handshake and four wave in tcp