问题描述
这是查询:
SELECT ROUND(column_1,0) as new_column_to_save
FROM table_to_save_to
谢谢
解决方法
如果你想把它插入到一个新表中:
INSERT INTO NEWTableName ( colName)
SELECT ROUND(column_1,0) as new_column_to_save
FROM table_to_save_to
如果你想更新同一个表中的列
UPDATE table_to_save_to
SET new_column_to_save = ROUND(column_1,0)
FROM table_to_save_to