首页 > 解决方案 > 在 ORACLE 19c 中查询 CLOB json 时解决错误的 Hơw

问题描述

创建的数据库(在 Oracle 19c 中)和表名是s_invColumn name isdoc和 type is CLOB

我创建“检查(文档是 JSON)”并在 OR 条件下运行查询是错误的。1=1 但它是解析 ((1=1) or ... or ...) = false

Select *
From s_inv a
Where
    a.sec<>'njr9e9ngd9'
    And (
          (1=1)
       Or (a.doc.root.sec='njr9e9ngd9')
       Or (a.doc.root.sec='omr36o6r43')
   ) Order by id

标签: jsonoracleoracle19c

解决方案


推荐阅读