摘要: 保留两位小数点 SELECT ROUND(CAST(field1 AS DOUBLE)/field2, 2) * 100 FROM TB; 不保留 SELECT CAST(field1 AS FLOAT)/field2 * 100 FROM TB 然後再頁面顯示時再加上“%” 阅读全文
posted @ 2018-10-26 15:36 MagicAsa 阅读(15789) 评论(0) 推荐(0) 编辑