PHPZlc & Symfony PHPZlc & Symfony
  • 首页 
  • 文档 
  • 博客 
  • 联系我们 
  • 登录 注册
PHPZlc & Symfony PHPZlc & Symfony
登录 注册
PHPZlc & Symfony
  • 首页 
  • 文档 
  • 博客 
  • 联系我们 

类别:

  • Symfony新闻 (11)
  • Symfony博客 (8)
  • PHPZlc动态 (14)
  • PHPZlc博客 (2)
  • 技术分享 (7)

标签

  • sql
  • 排序

最新博客:

Symfony 6.3的新功能:调度程序组件,取代cron轻松实现定时任务【转载】
3天前
Symfony 6.3中的新功能:密码强度约束【转载】
4天前
Symfony 6.3 中的新功能:查询参数映射器【转载】
7天前
Symfony 6.3 中的新功能:序列化程序调试命令【转载】
10天前
Symfony 6.3 中的新功能:表情符号改进【转载】
11天前
loading
  1. 首页
  2. 博客
  3. 技术分享
  4. mysql 对 name-1, name-11 字符串带数字的进行排序
更新于 2022-12-15 11:31:22

类别:

  • Symfony新闻 (11)
  • Symfony博客 (8)
  • PHPZlc动态 (14)
  • PHPZlc博客 (2)
  • 技术分享 (7)

标签

  • sql
  • 排序

最新博客:

Symfony 6.3的新功能:调度程序组件,取代cron轻松实现定时任务【转载】
3天前
Symfony 6.3中的新功能:密码强度约束【转载】
4天前
Symfony 6.3 中的新功能:查询参数映射器【转载】
7天前
Symfony 6.3 中的新功能:序列化程序调试命令【转载】
10天前
Symfony 6.3 中的新功能:表情符号改进【转载】
11天前

mysql 对 name-1, name-11 字符串带数字的进行排序

CJayhe 技术分享 185 views

J_5E2

order by substring(name from 14 for 2)::integer+0

原理: sql截取函数和字符串转int函数

感谢:群友-北风提供的解决方案,本贴用于记录

帮助PHPZlc项目!

与任何开源项目一样, 贡献代码 或 文档 是最常见的帮助方式, 但我们也有广泛的 赞助机会。

评论
CONTENTS
Leaf Illustration

皖ICP备17026196号-3 34020302000197号

© All Rights Reserved by PHPZlc