sql2000:create table test(id int)alter table test add  new as id+1

解决方案 »

  1.   

    create table test_01  (a int ,b int, c as a+b)
    go
      

  2.   

    抱歉。。应该是我没说清楚
    我的意思是说如何通过可视化工具建立计算字段。。比如Enterprise Manager
      

  3.   

    可以的
    如果是计算字段的话
    单价 数量  合计
    合计字段就是计算字段
    可以编写一个自定义函数
    在Enterprise Manager -设计表
    在公式中写上你的自定义函数的名称 不要忘了dbo.函数名