create table fuqiang as
select objectid,max(contentCode) as contentCode ,max(name_lang1) as name_lang1 ,max(externalid)as externalid,max(areacode) as areacode,max(restype) as restype,max(validShowDate) as validShowDate,max(accessright) as accessright ,max(pri) as pri,max(description_lang1) as description_lang1,
max(ownerid) as ownerid ,max(providername) as providername ,max(isSubscribeMsg)as isSubscribeMsg,max(iscommentenable)as iscommentenable,max(isportalsubenable) as isportalsubenable,max(resourcebound) as resourcebound,max(resChildren||' ')as resChildren,max(extproperty||' ') as extproperty,
wmsys.wm_concat(decode(NVL(resTypeValue,''),'',';',resTypeValue)||';') as resTypeValue,max(ftpurl) as ftpurl,max(ftpaccount) as ftpaccount,max(ftppasswd) as ftppasswd
from
(
select
max(med.objectid) as objectid,
max(content.contentcode) as contentCode,
max(med.name_lang1) as name_lang1 ,
max((select g.externalid from mdsp_t_categoryinfo g where g.objectid = (select q.source_id from t_cmp_ref_categorytocontent q where q.target_id = content.objectid))) as externalid ,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'areacode' and s.objectid = content.objectid)) as areacode,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'restype' and s.objectid = content.objectid)) as restype,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'validShowDate' and s.objectid = content.objectid)) as validShowDate,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'accessright' and s.objectid = content.objectid)) as accessright,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'pri' and s.objectid = content.objectid)) as pri,
max(med.description_lang1) as description_lang1 ,
max(content.ownerid) as ownerid ,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'providername' and s.objectid = content.objectid)) as providername,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'isSubscribeMsg' and s.objectid = content.objectid)) as isSubscribeMsg,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'iscommentenable' and s.objectid = content.objectid)) as iscommentenable,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'isportalsubenable' and s.objectid = content.objectid)) as isportalsubenable,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'resourcebound' and s.objectid = content.objectid)) as resourcebound,
null as resChildren ,
null as extproperty,
-- max(resport.source_id) as source_id ,
-- max(resport.target_id) as target_id ,
-- max(med.objectid) as objectid,
-- max(med.description_lang1) as description_lang1,
wmsys.wm_concat(decode(NVL(ext001.value,''),'','""',ext001.value)) as resTypeValue,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'ftpurl' and s.objectid = content.objectid)) as ftpurl,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'ftpaccount' and s.objectid = content.objectid)) as ftpaccount,
max((select s.value from T_CMP_EXT_MEDIACONTENT s where s.name = 'ftppasswd' and s.objectid = content.objectid)) as ftppasswd
from T_CMP_TYPE_MEDIACONTENT med,
t_cmp_ref_resource_PortalType resport,
t_cmp_type_portaltypeinfo portinfo,
t_cmp_ref_portalTypeInfo_Url mm,
t_cmp_ext_resourceurl ext001,
t_cmp_type_content content
where resport.source_id = med.objectid
and portinfo.objectid = resport.target_id
and mm.source_id = resport.target_id
and mm.target_id = ext001.objectid
and ext001.name in('displaymode','biglogo','smalllogo','subtitle','needvisitparam')
and content.objectid = med.objectid
and med.name_lang1 = 'fuqiang001_app'
group by resport.target_id
) hello group by objectid;
分享到:
相关推荐
oraclel_ERP特点_cn01.pptx
Oracle电子商务套件是一款由Oracle公司推出的全面的企业资源规划(ERP)解决方案,旨在帮助企业实现高效的运营管理和决策支持。这款系统的特点和优势主要体现在以下几个方面: 1. **全球化与集成性**:Oracle ERP...
此外,MySQL还支持在脚本中使用`source`命令来执行其他文件,或者使用`;`作为语句结束符来连接多个命令。 其次,SQL Server的批处理主要通过Transact-SQL(T-SQL)脚本来完成。用户可以创建一个`.sql`文件,比如`...
Oracle Instant Client_12_1 Downloads 有效解决oracle library is not loaded的问题 有效解决ORA-28547:connection to server failed,probable Oracle Net admin error的问题
Oracle数据库是全球广泛使用的大型关系型数据库管理系统之一,尤其在企业级应用中占据了重要的地位。"十分经典的ORACLEL练习题"显然是一份专门针对Oracle数据库的学习资源,旨在帮助用户提升其在数据库管理、SQL查询...
针对企业不同操作系统,不同应用,不同数据库的安全基线检查脚本,是安全等保工作的得力助手,全系列22个。
Oracle数据库是世界上最流行的数据库管理系统之一,它提供了丰富的功能和工具,包括各种内置的包、存储过程和函数,以满足复杂的数据库管理和应用需求。本篇主要介绍两个常用的Oracle包:dbms_output 和 dbms_job,...
3. ** Shared Library Driver (Type 2)**:这种驱动使用本地库(如Oracle的oci.dll)进行通信,适用于需要利用本地性能优化的情况。 4. ** Network Protocol Driver (Type 3)**:这种驱动通过中间服务器(如Oracle ...
使用这个比较函数,我们可以确保数值数组按照升序排列: ```javascript var values = [4, 2, 1, 3]; values.sort(compare); console.log(values); // 结果: [1, 2, 3, 4] ``` ### 三、根据对象属性进行排序 如果...
以下是对【标题】"Oraclel性能优化"和【描述】中提及知识点的详细解释: 1. **选择合适的优化器** - **RULE**: 基于规则的优化器,按照预定义的规则进行查询优化,简单但可能不灵活。 - **COST**: 基于成本的优化...
MySQL和Oracle都是广泛使用的数据库管理系统,但在修改表结构方面,两者有一些差异和特定的语法。 1. **MySQL修改表结构** - **添加新字段**: ```sql ALTER TABLE table_name ADD COLUMN column_name column_...
在实际操作中,用户可能需要通过这样的网站获取有关如何配置和使用Oracle Instant Client的指南。 使用Oracle Instant Client的具体步骤如下: 1. 下载并解压适合操作系统的Oracle Instant Client版本。 2. 配置...
没有色卡,所以先根据其他机型编译的,可以试用下!给大家分享下,可以体验下电影调调!
2. **下载与解压**:下载提供的"Oracle TimesTen 11.2.2.8.0 for Microsoft Windows x64 (64-bit).zip"文件,然后使用合适的解压缩工具将其解压到指定目录。 3. **阅读readme.html**:这个文件包含了重要的安装指南...
网盘文件永久链接 目录 1.Oracle在linux下单机安装rar 2Linux6,5安装0rade-11g-RAC(1rar 3Linux6.5安装0race-1g-RAC(2)rar ...22.Oraclel闪回技术,rar 230rade-rman备份恢复rar 24.Oracle OGG简介.rar
例如,从`crontab –l`中找到的备份脚本`/oraclel/app/oracle/test/fullback.sh`,使用`more /oraclel/app/oracle/cgs/fullback.sh`查看其内容,通过RMAN执行备份,日志记录在`/backup/log/zhpt_tape_bak.log`。...
- 使用`su - oracle`命令进行用户切换。 ##### 启动Oracle系统 启动Oracle可以通过以下步骤来完成: 1. **进入Oracle命令行模式**:输入`oracle>svrmgrl`。 2. **连接到内部模式**:输入`SVRMGR>connect internal...
包括solr的所有资源文件文件清单如下: IKAnalyzer.cfg.xml ik-analyzer-solr5-5.x.jar solr-analyzer-ik-5.1.0.jar managed-schema mysql-connector-java-5.1.7-bin.jar solrconfig.xml data-config.xml ...
开发环境:eclipse + tomcat7.0 + oraclel 使用框架:Struts2 + Spring + Hibernate 前端页面:Jquery + jquery-easyui 项目介绍: 本系统在开发过程中采用JSP技术,MVC设计模式。系统运行后,满足公司办公的基本...