1. 程式人生 > >sql中取出字符串中數字

sql中取出字符串中數字

bst alt index string reverse AS sharp sub info

select
     substring(reverse(‘0->星光‘),PATINDEX(‘%[0-9]%‘,reverse(‘0->星光‘)),1)

  

技術分享圖片

技術分享圖片

sql中取出字符串中數字