使用子句:ESCAPE。例如:select * from tab t where t.tname like 'B\_%' ESCAPE '\';结果如下:1B_BOSSQUERYTABLE 2B_BOSSQUERYERRTABLE 3B_CALLBACKTABLE 4B_CALLBACKERRTABLE 5B_CHARGETABLE 6B_ORDERTABLE 英文如下:You can include the actual characters "%" or "_" in the pattern by u...【阅读全文】
今天重读ORACLE官方文档《concepts》,读到schema的基本概念,对它的理解更进一层,官方文档中关于schema是这样解释的: “A schema is a collection of database objects. A schema is owned by a database user and has the same name as that user. Schema objects are the logical structures that directly r...【阅读全文】
最近在使用impdp导入数据的时候,因源库gbk与目标库utf8的字符集不一样,造成导入时目标库中表的字段长度不够。报错信息如下:点击(此处)折叠或打开ORA-02374: conversion error loading table "HN_CM_IRMS_35_TNMS"."PTN_NE_TO_SERVICE"ORA-12899: value too large for colu...【阅读全文】
查看所有用户分区表及分区策略(1、2级分区表均包括):SELECT p.table_name AS 表名, decode(p.partitioning_key_count, 1, '主分区') AS 分区类型,p.partitioning_type AS 分区类型, p.column_name AS 分区键,decode(nvl(q.subpartitioning_key_count, 0), 0, '无子分区', 1, '子分区') AS 有无子分区,q.subpartition...【阅读全文】
Oracle 查看统计信息SCRIPT - Select to show Optimizer Statistics for CBO (Doc ID 31412.1)https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=1638430201757426&id=31412.1&_adf.ctrl-state=17ud5ixo9v_65 [oracle@my2950 admin]$ cd /u01/app/oracle/product/11.2.4/db_1/rdbms/admin[oracle@my2950 ad...【阅读全文】