oracle teacher表有a,b,c,d,e字段,我想建个视图,然后视图中将a+b作为一个字段,怎么写?

2024-12-01 00:46:47
推荐回答(1个)
回答1:

a和b是什么类型,是数值的话如果求和,这样写:
create or replace view xx as select a+b a1,c,d,e from teacher

如果a和b是字符串类型,这样写:
create or replace view xx as select a || b a1,c,d,e from teacher