参照: Oracle存储过程中使用游标来批量解析CLOB字段里面的xml字符串 背景:在写存储过程时,需要获取表单提交的信息.表单信息是以xml格式的字符串存储在colb类型的字段dataxml中,如何获取呢?参考百度内容,写一个function(函数),参数有xml格式字符串(dataxml值)和指定节点(nodeName),返回指定节点的值(nodeValue). 编码实现: --get_xml_nodeValue实现 start CREATE OR REPLACE FUNCTION get
一:查询字符串类型的字段的值不为空的SQL: select * from TB_CMS_FLGTINFO_A t where (t.fsta is not null and t.fsta <>' '); 主:上面的TB_CMS_FLGTINFO_A是表名,fsta是表中的字段 二:查询字符串类型的字段的值为空的SQL: select * from TB_CMS_FLGTINFO_A t where (t.fsta is null or t.fsta =' '); 主:上面的TB_CMS_FLG
delete from M_FACTOR_DATA_TEST a where (a.factor_id,a.data_date,a.stock_code) in (select factor_id,data_date,stock_code from M_FACTOR_DATA_TEST group by factor_id,data_date,stock_code having count(*) > 1) and rowid not in (select min(rowid) from M_FA