帆软技术支持!
实例sql:SELECT OT.tableId, IF ( LOCATE( 'FD', id ), '实时', '抽取' ) AS 表性质, OT.tableName AS origName, TRT.tableName , FU.userName AS creatorNameFROM ( SELECT id, SUBSTRING( id, locate( '.', id )+ 11, 16 ) AS tableId, VALUE AS tableName FROM fine_conf_entity WHERE id LIKE 'DirectEntryConfStore%.mapHolder.________________.name' OR id LIKE 'DirectEntryConfStore%.mapHolder.________________.entryInfoConf.name' ) OTLEFT JOIN ( SELECT SUBSTRING( id, locate('.', id )+ 11, 16 ) AS tableId, VALUE AS tableName FROM fine_conf_entity WHERE id LIKE 'DirectEntryConfStore%.mapHolder.%.escapeMap.________________' ) AS TRT ON OT.tableId = TRT.tableIdLEFT JOIN ( SELECT SUBSTRING( id, locate( '.', id )+ 11, 16 ) AS tableId, VALUE AS creatorId FROM fine_conf_entity WHERE id LIKE 'DirectEntryConfStore%.mapHolder.________________.creatorName' OR id LIKE 'DirectEntryConfStore%.mapHolder.________________.entryInfoConf.creatorName' ) AS TRN ON OT.tableId = TRN.tableIdLEFT JOIN ( SELECT id as userid, userName FROM fine_user ) AS FU ON TRN.creatorId = FU.userid