当前位置:网站首页>MYSQL 对字符串类型排序不生效问题
MYSQL 对字符串类型排序不生效问题
2022-07-05 09:22:00 【我不想成秃头】
使用order by (字符串字段) ASC/DESC 排序未生效。
展示的结果是1,10,11... 并非 1,2,3...
解决方法:
把查询的字段类型转换一下: cast(字符串字段 as signed)
边栏推荐
- 一文详解图对比学习(GNN+CL)的一般流程和最新研究趋势
- NIPS2021 | 超越GraphCL,GNN+对比学习的节点分类新SOTA
- Introduction Guide to stereo vision (4): DLT direct linear transformation of camera calibration [recommended collection]
- Kotlin introductory notes (VII) data class and singleton class
- Node collaboration and publishing
- Introduction Guide to stereo vision (7): stereo matching
- Creation and reference of applet
- Huber Loss
- Analysis of eventbus source code
- Rebuild my 3D world [open source] [serialization-1]
猜你喜欢
VS Code问题:长行的长度可通过 “editor.maxTokenizationLineLength“ 进行配置
The research trend of map based comparative learning (gnn+cl) in the top paper
Codeworks round 639 (Div. 2) cute new problem solution
Using request headers to develop multi terminal applications
LeetCode 556. 下一个更大元素 III
LeetCode 503. 下一个更大元素 II
Newton iterative method (solving nonlinear equations)
OpenGL - Lighting
什么是防火墙?防火墙基础知识讲解
High performance spark_ Transformation performance
随机推荐
迁移学习和域自适应
LeetCode 503. 下一个更大元素 II
Kotlin introductory notes (II) a brief introduction to kotlin functions
我的一生.
Jenkins Pipeline 方法(函数)定义及调用
Priority queue (heap)
OpenGL - Model Loading
Rebuild my 3D world [open source] [serialization-1]
[technical school] spatial accuracy of binocular stereo vision system: accurate quantitative analysis
Uni app implements global variables
C # compare the differences between the two images
fs. Path module
Confusion matrix
Kotlin introductory notes (VIII) collection and traversal
2309. 兼具大小写的最好英文字母
My life
项目实战 | Excel导出功能
Applet global style configuration window
Summary of "reversal" problem in challenge Programming Competition
2310. The number of bits is the sum of integers of K