开发者

Oracle sql - global variable

开发者 https://www.devze.com 2023-01-07 20:26 出处:网络
I have two sql script file which are to be scheduled as windows tasks. 1.sql contains this at the begining:

I have two sql script file which are to be scheduled as windows tasks. 1.sql contains this at the begining: column dat1 new_value DAY_NUMBER; select 2 dat1 from dual;

While 2.sql contains this at the begining: column dat1 new_value DAY_NUMBER; select 1 dat1 from dual;

I开发者_如何学JAVAf I am going to combine this two script into one, will DAY_NUMBER be set to 1?

Thanks a lot.

Sarah


I think it'll generate an error:

column dat1 new_value DAY_NUMBER; select 2 dat1 from dual;

column dat1 new_value DAY_NUMBER; select 1 dat1 from dual; 

The error is that you'll have the same column variable dat1 declared twice.

0

精彩评论

暂无评论...
验证码 换一张
取 消