日期:2014-05-18 浏览次数:20960 次
--建立测试环境
set nocount on
create table test(首重金额 float,续重金额 float,重量 float)
insert into test select '12','3','27'
go
--测试
alter table test add 运费 as 首重金额+(重量-1)*2*续重金额
go
select *from test
--删除测试环境
drop table test
set nocount off