當一個字段存在逗號分隔時獲取最後一個值

select SK.skuId as id,SK.pCode,SK.pSpec,SK.pUnit,SK.pPrice as pSugPrice,SK.pCost,SK.stock,SK.pName,SUBSTRING_INDEX(SUBSTRING_INDEX(pRCode,',',2),',',-1) as pRCode from product_sku_spu as SK where SK.p
相關文章
相關標籤/搜索