Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQLで文字列を数値にフォーマットする方法.
例では、
値 1,222,333.22 を結果に変換: 1222333.22
使用するCAST()
CAST()
SELECT CAST(REPLACE(colName, ',', '') AS DECIMAL(10,2))