mysql字符串截取(substring、instr)

"lendate":"2019-01-01":截取日期

substring(request_info,instr(request_info,'"lendate":"') + 11,10)

substring(request_info,instr(request_info,'"lendate":"') + 11,len) -- len是截取的长度

注:

instr函数:返回开始截取字符串开始位置

substring:截取字符串,从instr返回的位置,截取到len长度的字符串

猜你喜欢

转载自blog.csdn.net/fu_zhongyuan/article/details/88187365
今日推荐