- 博客(3)
- 收藏
- 关注
原创 MySQL实现自增序列
MySQL实现自增序列 select ( @i := @i + 1) as i from test,(select @i := 0) as it limit 15) num test为任意表
2021-12-17 11:39:01
580
原创 MYSQL实现split()功能
实现代码1 select SUBSTRING_INDEX(SUBSTRING_INDEX(‘hud,wwe,rrt,tyf,oi’ ,’,’,i),’,’,-1) as id from (select ( @i := @i + 1) as i from test, (select @i := 0) as it limit 15) num where num.i <= length(‘hud,wwe,rrt,tyf,oi’)-length(replace(‘hud,wwe,rrt,tyf,oi’ , ‘
2021-12-17 11:30:03
20855
原创 接受一个十六进制的数,输出该数值的十进制表示
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
364
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅