📅  最后修改于: 2022-03-11 15:05:15.297000             🧑  作者: Mango
-- 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 (acccount * 2);