我有一个甲骨文的SQL查询的这个部分(其它更多的上面是不适用的问题) ... authorw as (
select a.id, (sum(p.w)) "theWeightOfTheAuthor"
from ac a, pc p, authorpublication ap
where a.id = ap.aid and ap.pid = p.id
group
我有字符串“KK12340000”,我想验证它只有KK后第4位数字按升序排列,所以我使用类似: select case when REGEXP_LIKE('KK12340000', '^KK(?=\d{4})(?:(.)\\1*|0?1?2?3?4?5?6?7?8?9?)\d{4}$') then 1 else 0 end as valid from dual;
但它返回0。因此,它是甚至可能