PostgreSQL通配符类似于子查询返回的任何单词列表
这非常类似于,除了不希望在静态单词列表上进行匹配外,我希望在子查询返回的单词列表上进行匹配 大概是这样的:PostgreSQL通配符类似于子查询返回的任何单词列表,sql,postgresql,Sql,Postgresql,这非常类似于,除了不希望在静态单词列表上进行匹配外,我希望在子查询返回的单词列表上进行匹配 大概是这样的: SELECT * FROM people WHERE name ~* (SELECT concat(last_name, ', ', first_name) FROM other_people) + wildcard in this direction 英雄的非常感谢。 select * from people where name like any (
SELECT *
FROM people
WHERE name ~* (SELECT concat(last_name, ', ', first_name)
FROM other_people) + wildcard in this direction
英雄的非常感谢。
select *
from people
where name like any (
select concat(last_name, ', ', first_name, '%')
from other_people
)