sql中table用法
2024-09-28 16:26:37
for c in (select column_value from table(f_split(V_FileID, ','))) loop
--若没有填写资格开始结束时间,则填入
select count(*)
into numDataCount
from ly_zg_jzfbt z
where file_id = c.column_value
and z.pt_valid_stime is null;
if numDataCount > 0 then
update ly_zg_jzfbt z
set z.pt_valid_stime = trunc(sysdate),
z.pt_valid_etime = add_months(trunc(sysdate), 12) - 1,
z.fanaly_valid_etime = add_months(trunc(sysdate), 12) - 1
where z.file_id = c.column_value;
commit;
end if; select l.CONTROL_ID
into numControl
from ly_zg_jzfbt l
where file_id = c.column_value;
varERRMSG := PK_JJZLFBTINFO.F_CheckStandard(c.column_value,
to_char(numControl));
if varERRMSG is not null then
raise_application_error('-20001', varERRMSG);
end if;
PK_FAMILYHOUSE.P_GetFamilyHouseInfoData(
numControl,
c.column_value,
p_temp);
if varERRMSG is not null then
raise_application_error('-20001', varERRMSG);
end if;
PK_FAMILYINFO.P_GetFamilyInfo(
c.column_value,
p_temp);
if varERRMSG is not null then
raise_application_error('-20001', varERRMSG);
end if; select l.is_over_certificate
into doCeritify
from ly_zg_jzfbt l
where file_id = c.column_value; if doCeritify is null or doCeritify = 1 then
update ly_zg_jzfbt l
set l.do_certificate_time = sysdate, l.is_over_certificate = 0
where file_id = c.column_value;
commit;
end if;
--将out出的内容与file_id拼接在一起
varIncomeAvg_All := varIncomeAvg_All || c.column_value || ':' ||
numIncomeAvg || ',';
varIdentifiedArea_All := varIdentifiedArea_All || c.column_value || ':' ||
numIdentifiedArea || ',';
varPerIdentifiedArea_All := varPerIdentifiedArea_All ||
c.column_value || ':' ||
numPerIdentifiedArea || ',';
end loop;
最新文章
- [译]IIS 8.0应用初始化
- MVC实用架构设计(三)——EF-Code First(5):二级缓存
- 机器学习实战笔记(Python实现)-01-K近邻算法(KNN)
- JavaScript—赋值表达式
- getElementByName()和getElementById的区别
- 基于Node.js+socket.IO创建的Web聊天室
- SpringMVC核心——返回值问题
- 18.C#扩展方法(十章10.1-10.2)
- 51nod1294 修改数组
- Eclipse 将projectBuild Path中引用的jar包自己主动复制到WEB-INF下的lib目录下
- 【G】开源的分布式部署解决方案 - 预告篇
- anaconda3安装cv2模块(python3.6)
- loss函数学习笔记
- Codeforces 982E Billiard 扩展欧几里德
- LOJ.6074.[2017山东一轮集训Day6]子序列(DP 矩阵乘法)
- import tensorflow 报错: tf.estimator package not installed.
- 浏览器神器--vimium
- mysql 汇总
- mac sz rz file tras
- JAVA作业之动手动脑