How do you add a computed column to a Table?

前端 未结 1 2060

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条回答
  • 2021-02-11 12:40

    The syntax I was looking for is:

    alter table TABLE_NAME
    add [column_name] as (**COLUMN-SQL**)
    
    0 讨论(0)
提交回复
热议问题