等于在pl/sql里是怎么用的?比如x小与3可以写成: x < 3
x等于3我试了下 x = 3, x == 3 都不行啊。 谢谢了。
x等于3我试了下 x = 3, x == 3 都不行啊。 谢谢了。
解决方案 »
- oracle EM中的备份与恢复问题(11G)
- 小计和总计的语句怎么写?
- 怎样查出两条信息,一条id是固定的,另一条id要根据登陆的用户判断
- 请高手指点明灯:用触发器备份含用BLOB表-急
- 使用data guard broker 时,首选身份验证出错?特急!!!!!!
- C++ Buiider 6 + ODAC 4.5如何获得Oracle存储过程的输出参数?
- sql语句的优化
- 菜鸟问题:CHAR类型字段,存的数字,相加,结果不是串连接,而是把数字相加结果返回了?
- 到明基电通公司搞软件研发有前途吗?
- 如何修改commit频率,比如每100行commit一次
- oracle 全表扫描
- oracle job 疑问
begin
for x in 0..10 loop
dbms_output.put_line(x);
if x > 5 then
dbms_output.put_line(x || ' is less than 5');
elseif x = 5 then
dbms_output.put_line(x || ' is equals 5');
else
dbms_output.put_line(x || ' is greate than 5');
end if;
end loop;
end;
begin
for x in 0..10 loop
dbms_output.put_line(x);
if x > 5 then
dbms_output.put_line(x || ' is less than 5');
elsif x = 5 then
dbms_output.put_line(x || ' is equals 5');
else
dbms_output.put_line(x || ' is greate than 5');
end if;
end loop;
end;语法错误