大家好,又见面了,我是你们的朋友全栈君。
展开全部
select REVERSE(right(REVERSE(filename),length(filename)-LEAST(
if(Locate(‘0’,REVERSE(filename)) >0,Locate(‘0’,REVERSE(filename)),999),
if(Locate(‘1’,REVERSE(filename)) >0,Locate(‘1’,REVERSE(filename)),999),
if(Locate(‘2’,REVERSE(filename)) >0,Locate(‘2’,REVERSE(filename)),999),
if(Locate(‘3’,REVERSE(filename)) >0,Locate(‘3’,REVERSE(filename)),999),
if(Locate(‘4’,REVERSE(filename)) >0,Locate(‘4’,REVERSE(filename)),999),
if(Locate(‘5’,REVERSE(filename)) >0,Locate(‘5’,REVERSE(filename)),999),
if(Locate(‘6’,REVERSE(filename)) >0,Locate(‘6’,REVERSE(filename)),999),
if(Locate(‘7’,REVERSE(filename)) >0,Locate(‘7’,REVERSE(filename)),999),
if(Locate(‘8’,REVERSE(filename)) >0,Locate(‘8’,REVERSE(filename)),999),
if(Locate(‘9’,REVERSE(filename)) >0,Locate(‘9’,REVERSE(filename)),999)
)+1)),filename
from homework
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/136527.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...