

create or replace table txt.huilv
f1 VARCHAR
);
create or replace procedure huilv(d) return rowset as
begin
execute('alter table txt.huilv set
+ replace(d,'-','%2F') + '''');
select getseg(f1, ',', 1) 货币名称,
getseg(f1, ',', 2) 现汇买入价,
getseg(f1, ',', 3) 现钞买入价,
getseg(f1, ',', 4) 卖出价 ,
getseg(f1, ',', 5) 基准价 ,
getseg(f1, ',', 6) 中行折算价,
getseg(f1, ',', 7) 发布时间 ,
from (select strsum(f1, ',') f1
from (select floor((rowno() - 1) / 7) rowno, replace(f1, ' ') f1
from (select substr(f1, 1, instr(f1, '<') - 1) f1
from (select substr(f1, instr(f1, '>', 1) + 1) f1
from txt.huilv limit 207, 182)
where substr(f1, 1, instr(f1, '<') - 1) != ''))
group rowno)
where rowno() > 1;
end;
select * from huilv(curdate());
1732



被折叠的 条评论
为什么被折叠?



