📅  最后修改于: 2022-03-11 15:05:01.429000             🧑  作者: Mango
-- use cast
UPDATE my_table
SET my_column = CAST(my_column AS INT)
WHERE ...;
-- or convert
UPDATE my_table
SET my_column = CONVERT(INT, my_column)
WHERE ...;