Sql 如果给出一个错误,那么给我们一个指向dbfiddle的链接更具建设性,这样我们就可以看到您所做的事情,而不仅仅是在没有任何附带代码的情况下说有错误。对不起,这是链接 type array_type is varray(100) of NUMBER(10);
如果给出一个错误,那么给我们一个指向dbfiddle的链接更具建设性,这样我们就可以看到您所做的事情,而不仅仅是在没有任何附带代码的情况下说有错误。对不起,这是链接Sql 如果给出一个错误,那么给我们一个指向dbfiddle的链接更具建设性,这样我们就可以看到您所做的事情,而不仅仅是在没有任何附带代码的情况下说有错误。对不起,这是链接 type array_type is varray(100) of NUMBER(10);,sql,oracle,oracle11g,Sql,Oracle,Oracle11g,如果给出一个错误,那么给我们一个指向dbfiddle的链接更具建设性,这样我们就可以看到您所做的事情,而不仅仅是在没有任何附带代码的情况下说有错误。对不起,这是链接 type array_type is varray(100) of NUMBER(10); loop_results array_type := array_type(); 1: 906450 2: 906450 3: 306449 4: 906446 5: 306450 6: 906447 7: 306449 8
type array_type is varray(100) of NUMBER(10);
loop_results array_type := array_type();
1: 906450
2: 906450
3: 306449
4: 906446
5: 306450
6: 906447
7: 306449
8: 306448
9: 306448
10: 306450
Create table sample(value1
number(10));
Declare
type array_type is varray(100) of
NUMBER(10);
loop_results array_type := array_type();
Max varchar2(20);
begin
for i in 1..loop_results.length
loop
Insert into sample values
(loop_results(i)) ;
End loop
Select value1 into max from(Select
Value1,
count(*)
from sample order by count(*) desc
Group by value1) where rownum=1;
dbms_output.put_line(max) ;
End
COLUMN_VALUE | COUNT(*)
-----------: | -------:
306449 | 2
906450 | 2
306450 | 2
306448 | 2