How do you add a computed column to a Table?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 08:20:26

问题


How can I add a computed column to a table that already exists? S.O. has Computed Column Help - TSQL but no information about adding them.


回答1:


The syntax I was looking for is:

alter table TABLE_NAME
add [column_name] as (**COLUMN-SQL**)


来源:https://stackoverflow.com/questions/11058387/how-do-you-add-a-computed-column-to-a-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!