I'm trying to create the constraint with regexp using knex on the oracle database. Knex creates the constraint on oracle column but it replaces "?" with placeholder like ":1", ":2". I tried to replace the question mark (according to documentation) with "\?". It doesn't work for me on oracle db. Here is an example of oracle column constratint
knex.raw('ALTER TABLE atest ADD CONSTRAINT C_TEST CHECK (REGEXP_LIKE(COL_A, \'^((([A]{0,4})WW)|(W{0,2}))\\?([B]{5}WW)+((([C]{5})W\\?))$\'))');