level 1
请问:oracle的变量能不能不在程序块或存储过程中使用,而单独使用,如:
l_1 integer := 20
l_2 integer := 60
select * from name_aa where sl>=l_1 and sl<=l_2
实际中select语句多次引用这两个变量,以后还会经常变动。
(在pl/sql中,新建-sql窗口)
2015年09月29日 23点09分
1
level 4
select * from name_aa where sl>=&l_1 and sl<=&l_2 运行的时候再输入变量值;
2015年10月06日 15点10分
2