【发布时间】:2009-10-30 14:08:47
【问题描述】:
可以在存储过程中使用正则表达式吗?如果可以,怎么做?你能举一些例子来说明如何做到这一点吗?
【问题讨论】:
-
这属于哪个 DBMS?
可以在存储过程中使用正则表达式吗?如果可以,怎么做?你能举一些例子来说明如何做到这一点吗?
【问题讨论】:
一般来说是的。
MySQL:http://dev.mysql.com/doc/refman/5.1/en/regexp.html
甲骨文:http://www.oracle.com/technology/obe/obe10gdb/develop/regexp/regexp.htm
MS SQL:http://msdn.microsoft.com/en-us/magazine/cc163473.aspx
更多:
PostgreSQL:http://www.postgresql.org/docs/8.3/static/functions-matching.html
DB2:http://www.ibm.com/developerworks/data/library/techarticle/0301stolze/0301stolze.html
Informix:http://www.ibm.com/developerworks/data/zones/informix/library/techarticle/db_regexp.html
SQL Anywhere:http://iablog.sybase.com/paulley/2009/06/using-regular-expressions-with-sql-anywhere/
【讨论】: