Basically, I have a calculated field I am creating using开发者_开发知识库 a select query. I want to use the results of this calculation to update a column in an existing table. How do I do that in the same query? How do I use the results of a calculated field to automatically update my table?
Use the select as the value in an update statement.
UPDATE <table> SET <column> = (SELECT ...)
精彩评论