mysql的sql语句转换Oracle的sql语句
SELECTA.*,GROUP_CONCAT(c.product_id)ASproduct_id,GROUP_CONCAT(c.NAME)ASproduct,CASEA....
SELECT
A .*, GROUP_CONCAT (c.product_id) AS product_id,
GROUP_CONCAT (c. NAME) AS product,
CASE A .status
WHEN 0 THEN
'未启用'
WHEN 1 THEN
'已启用'
WHEN 2 THEN
'已禁用'
END AS status_text
FROM
flow_bm_resource A
LEFT JOIN flow_connect_product b ON A . ID = b.flow_id
LEFT JOIN de_data_product c ON (
b.product_id = c.product_id
AND c.use_yn = 'Y'
)
WHERE
1 = 1
AND used = 1
GROUP BY
A . ID
ORDER BY
A .create_date DESC
这个原本是Mysql的sql语句,执行没问题,但是放到Oracle中无法执行,请问如何把他变成Oracle的sql语句执行,
这个原本是Msql 展开
A .*, GROUP_CONCAT (c.product_id) AS product_id,
GROUP_CONCAT (c. NAME) AS product,
CASE A .status
WHEN 0 THEN
'未启用'
WHEN 1 THEN
'已启用'
WHEN 2 THEN
'已禁用'
END AS status_text
FROM
flow_bm_resource A
LEFT JOIN flow_connect_product b ON A . ID = b.flow_id
LEFT JOIN de_data_product c ON (
b.product_id = c.product_id
AND c.use_yn = 'Y'
)
WHERE
1 = 1
AND used = 1
GROUP BY
A . ID
ORDER BY
A .create_date DESC
这个原本是Mysql的sql语句,执行没问题,但是放到Oracle中无法执行,请问如何把他变成Oracle的sql语句执行,
这个原本是Msql 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询