22,209
社区成员
发帖
与我相关
我的任务
分享
--create table tb (A int ,b int ,C as A*B)
--不過沒有必要放上去
create table tb (A int ,b int )
insert tb select 2,3
insert tb select 3,4
insert tb select 5,6
select *,A*B C from tb
drop table tb
/*
A b C
----------- ----------- -----------
2 3 6
3 4 12
5 6 30
(影響 3 個資料列)*/
create table t(a int,b int,c as (a*b))