摘要: SELECT GROUP_CONCAT(b.name) AS 'name' FROM ( SELECT CONCAT(a.jobs,':',a.name) AS 'name',a.data_id AS 'data_id' FROM ( SELECT CASE bp.jobs WHEN 1 THEN 阅读全文
posted @ 2021-11-25 11:05 翘中之楚 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 1/去掉字段里的逗号.(比如set @= '1,320.00' 想得到@= '1320.00' )UPDATE table SET fieldA = REPLACE(fieldA, ',', '') 2/选择 SELECT REPLACE(fieldA, ',', '') AS Expr1 FROM 阅读全文
posted @ 2021-11-25 10:58 翘中之楚 阅读(633) 评论(1) 推荐(0) 编辑