【发布时间】:2015-02-04 04:42:37
【问题描述】:
我目前有以下查询:
select regexp_matches(name, 'foo') from table;
我怎样才能重写它,以便正则表达式位于如下位置(不起作用):
select * from table where regexp_matches(name, 'foo');
当前的错误信息是: 错误:WHERE 的参数必须是布尔类型,而不是文本类型 [] SQL 状态:42804 字符:29
【问题讨论】:
标签: regex postgresql