Regular Expressions in DB2 SQL

后端 未结 5 2234
天命终不由人
天命终不由人 2020-11-27 22:13

(Other than using a UDF) Any REGEXP-In-SQL support for DB2 9.7 ?

5条回答
  •  难免孤独
    2020-11-27 22:54

    Starting with DB2 11.1 there is built-in regex support. One of the new function is REGEXP_SUBSTR and there are some more.

    SELECT REGEXP_SUBSTR('hello to you', '.o',1,1) 
       FROM sysibm.sysdummy1
    

提交回复
热议问题