How to add a calculated column to Access via SQL

前端 未结 3 1106
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-19 21:43

How do i add a calculated column to an Access table in SQL?

I know i can add a column with SQL like this:

ALTER TABLE Clients ADD COLUMN AccountDate          


        
3条回答
  •  走了就别回头了
    2021-01-19 21:45

    I don't think MS Access supports computed columns. Instead, you can create a view:

    create view v_clients as
        select c.*, (col1 + col2) as col3
        from clients;
    

提交回复
热议问题