工作看到别人用的几个sql函数
作者:互联网
SELECT
group_concat(
`tf_business_goods_info`.`id`
ORDER BY
cast(
`tf_business_goods_info`.`original_price` AS DECIMAL (10, 2)
) ASC SEPARATOR ','
)
FROM
`tf_business_goods_info`
GROUP BY
`tf_business_goods_info`.`master_id`
就是根据分组把这个一行展示出来
取第几个
标签:info,goods,函数,business,sql,tf,别人,id,第几个 来源: https://blog.csdn.net/qq_43077857/article/details/120247527