当前位置:网站首页>lpad()函数和(row_number()over( order by )+ ...)
lpad()函数和(row_number()over( order by )+ ...)
2022-07-19 16:39:00 【扬州的你】
--LPAD自动在前面加数值,例子里面是0,凑足14位
select
'ZCZQ45' || LPAD((row_number() over(order by t1.C_PORT_CODE)+tmp_tbl.max_num), 14, '0') as abc
from bbb
边栏推荐
- 浅谈软件测试行业——测试员正确的成长姿势
- JMeter practical operation -- database data drive
- Thinkphp6百万级xlsx表格导入数据库的实现方案
- 华云数据荣获可持续技术创新杰出贡献企业
- Lidar data download steps
- What if the cell length becomes wider when input appears in the cell?
- MATLAB realizes LMDI decomposition method (including zero value processing)
- 为 KubeSphere 集群启用免费的泛域名 SSL 证书并实现证书自动更新和分发
- Large screen: the display adaptation and font of the page on different scale screens change with the screen change (the font changes adaptively with the screen resolution)
- Go language - Testing and performance
猜你喜欢
记一次爬取搜索引擎缩略图并保存到本地
浅谈软件测试行业——测试员正确的成长姿势
How to solve the user name enumeration vulnerability
After graduating from college in 19 years, I chose software testing after recognizing the truth of life
面试官:Redis&MySQL的三种缓存更新策略是怎样的?
银行业数据安全建设专题分析
Matlab绘制散点密度图
Matlab cell保存为.csv格式
JMeter practical operation -- database data drive
多线程FTP项目(4)—— Mysql数据库 + FTP
随机推荐
XSS(跨站脚本攻击)漏洞理解
XSS (cross site scripting attack) vulnerability understanding
Geoscience Academic Resources II
Under the epidemic, where is the way out for software testing?
Thinkphp6百万级xlsx表格导入数据库的实现方案
Why is the pay gap between testers and test engineers so large? Three minutes, you get it all
MIT6.S081-Lab10 mmap [2021Fall]
VRRP技术(详解)
tp5.1 foreach在控制器记录中新增加一个字段,其它字段不变也不用重新全部写一遍 (不在模板中操作)(分页)
If the total is based on the frame form by field, sort by a field
地学学术资源(常用数据及其下载地址)
R language "error in NLS cycles more than 50" solution
Mswep data NC format to TIF format
The power behind | strengthen the construction of digital government, and Huayun data helps the Civil Affairs Department of a province in Central China improve its convenience service capacity
mysql迁移金仓数据库主键、索引丢失问题解决方案
Matlab计算质心
Cut rope
Huayun data won the outstanding contribution enterprise of sustainable technological innovation
Database persistence +jdbc database connection
文件操作-