SELECT carddetails
FROM cc_emp_card
WHERE REGEXP_LIKE ( carddetails,'[[:digit:]]{10}?([^[:digit:]])');
电流输出:
FT 6820220419001794 xxx asdfwf 2 BIM 2022
FT 6820220419001796 xsdjcc jcw 2 BIM 2022
FT 6820220419001796 ajscbjk , c dk2 BIM 2022
000006650445/Business Meals (Staff with Externals)
5010083131,1234567890
1234567890
5010009921 dcbjwk ft 4959 29.04
5010018300 Dmdbchbk jdkjw 11 del 09.05
5000630739 dbcwbdj FT 9/001 DEL 13.05
5010015146 mnwd chjw FT 4 DEL 29.04.22
预期输出:
5010083131,1234567890
1234567890
5010009921 dcbjwk ft 4959 29.04
5010018300 Dmdbchbk jdkjw 11 del 09.05
5000630739 dbcwbdj FT 9/001 DEL 13.05
5010015146 mnwd chjw FT 4 DEL 29.04.22
1条答案
按热度按时间gpnt7bae1#
您应该将这些数字 * 锚 * 到字符串的开头: