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

类别:

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

标签

  • sql
  • 排序

最新博客:

mysql 对 name-1, name-11 字符串带数字的进行排序
1个月前
MYSQL中EXISTS的用法【转载】
1个月前
新功能:彻底解决富文本内图片附件等资源的路径问题
2个月前
element 按钮被隐藏 怎么办???
2个月前
Symfony 6.2 中的新功能:内置缓存、安全性、模板和 Doctrine 属性【转载】
3个月前
loading
  1. 首页
  2. 博客
  3. 技术分享
  4. mysql 对 name-1, name-11 字符串带数字的进行排序
更新于 2022-12-15 11:31:22

类别:

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

标签

  • sql
  • 排序

最新博客:

mysql 对 name-1, name-11 字符串带数字的进行排序
1个月前
MYSQL中EXISTS的用法【转载】
1个月前
新功能:彻底解决富文本内图片附件等资源的路径问题
2个月前
element 按钮被隐藏 怎么办???
2个月前
Symfony 6.2 中的新功能:内置缓存、安全性、模板和 Doctrine 属性【转载】
3个月前

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

CJayhe 技术分享 66 views

J_5E2

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

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

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

CONTENTS
Leaf Illustration

皖ICP备17026196号-3 34020302000197号

© All Rights Reserved by PHPZlc