向高手请教:oracle的变量能不能单独使用
oracle吧
全部回复
仅看楼主
level 1
swgs_xy 楼主
请问: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
level 2
无限顶
2015年10月08日 04点10分 3
level 11
路过
2015年10月10日 23点10分 5
1