- 博客(3)
- 收藏
- 关注
原创 MySQL实现自增序列
MySQL实现自增序列select ( @i := @i + 1) as ifrom test,(select @i := 0) as it limit 15) numtest为任意表
2021-12-17 11:39:01
529
原创 MYSQL实现split()功能
实现代码1selectSUBSTRING_INDEX(SUBSTRING_INDEX(‘hud,wwe,rrt,tyf,oi’ ,’,’,i),’,’,-1) as idfrom(select ( @i := @i + 1) as ifromtest,(select @i := 0) as it limit 15) numwherenum.i <= length(‘hud,wwe,rrt,tyf,oi’)-length(replace(‘hud,wwe,rrt,tyf,oi’ , ‘
2021-12-17 11:30:03
20371
原创 接受一个十六进制的数,输出该数值的十进制表示
import java.util.*;public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()) { String s = in.nextLine(); System.out.println(Integer.valueOf(s.subs
2021-10-11 19:02:43
269
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人