簡體   English   中英

如何將查詢結果保存到新列中並使用 SQL Oracle Live 將其保存在表中?

[英]How can I save query results into a new column and save it in the table with SQL Oracle Live?

這是查詢:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM