会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
绮楼听风雨
博客园
首页
新随笔
联系
订阅
管理
2021年2月23日
【mysql】输出固定长度字符串,补齐字符串的几种方法
摘要: 方法1、concat()函数 1 select code, name, 2 case 3 when length(code)=6 then concat(code,'000000') 4 when length(code)=9 then concat(code,'000') 5 else code
阅读全文
posted @ 2021-02-23 23:33 绮楼听风雨
阅读(2688)
评论(0)
推荐(0)
公告