【发布时间】:2018-06-01 19:18:58
【问题描述】:
我有这样的文字“running hl loan hdfc 9.5% customer is not interested”
我只想从整个字符串中选择9.5%。无论字符串是什么,但我只想选择 % 值。
【问题讨论】:
-
检查您使用的数据库引擎是否支持正则表达式。例如 - dev.mysql.com/doc/refman/5.7/en/regexp.html#operator_regexp , postgresql.org/docs/9.3/static/functions-matching.html ...
-
标记您正在使用的 DBMS 产品(例如 MySQL、PostgreSQL、Oracle、MS SQL Server 等)。 “SQL”只是一种查询语言,而不是特定数据库产品的名称。
-
如果列值为
10% 9.5% 100%,您希望看到什么结果?
标签: sql sql-server-2008 sql-server-2012 sql-server-2008-r2