【发布时间】:2016-12-10 06:13:19
【问题描述】:
我有一张桌子
create table test_table(
id number(10),
x number(10),
y number(10),
svalue number(10));
填表为
declare
i integer;
begin
i := 0;
for x in 1 .. 10 loop
for y in 1 .. 10 loop
i := i + 1;
insert into test_table
(Id, x, y, svalue)
values
(i, x, y, x + y);
end loop;
end loop;
commit;
end;
如何显示表格
1 2 3 4 5 Ny
1 2 3 4 5 6
2 3 4 5 6 7
3 4 5 6 7 8
Nx
其中 x - 行,y - 列,svalue - 值 x,y
【问题讨论】:
-
首先引用此 url stackoverflow.com/questions/38651147/… 并在创建数据透视函数后运行此查询 select * from table(pivot('select x,y,svalue from test_table'))
-
我有 Oracle Database 11g Express Edition Release 11.2.0.2.0 和 ORA-29913: error in execution ODCITABLEDESCRIBE callout
-
如果您在维护问题时对数据进行表格化,那么它将起作用。
-
我从一个问题运行代码并得到一个错误,我发现错误通常发生在 11.2.0.3 之前的版本中
标签: oracle oracle11g system coordinate cartesian