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.pCode='0001000017'

 

当一个字段存在逗号分隔时获取最后一个值

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案