Answers for "sql server add a calculated column"

SQL
0

sql add calculated column

-- MySQL / Oracle:
ALTER TABLE table_name ADD double_count NUMBER(10, 2)
    GENERATED ALWAYS AS (account * 2) VIRTUAL;
    
-- SQL Server
ALTER TABLE table_name ADD [double_count] AS (account * 2);
Posted by: Guest on June-19-2021

Code answers related to "sql server add a calculated column"

Code answers related to "SQL"

Browse Popular Code Answers by Language