象select count(*) from (select hpid from jfytk group by hpid);这样的语句在pl/sql中不能用吗?
我在sql plus中可以用,而且得到正确结果,但是在用form3.0编程中就通不过,是什么原因啊?难道是pl/sql不支持这种写法?请高手告知。
我在sql plus中可以用,而且得到正确结果,但是在用form3.0编程中就通不过,是什么原因啊?难道是pl/sql不支持这种写法?请高手告知。
但不知你是什么方式去执行它的
select count(distinct t.hpid) from jfytk t
select count(distinct t.hpid) from jfytk t ;
这个语句是对的 但是我是问前面的怎么不能用了?我在form3.0中通不过啊
肯定可以在plsql中执行通过的select count(*) into v_i from (select hpid from jfytk group by hpid);
则需要在plsql中
declare v_i number;
begin
select count(*) into v_i from (select hpid from jfytk group by hpid);
dbms_output.put_line('v_i = '||v_i);
end;