I have two tables. One is the users
table
id - name - skills
and the other is the jobs
table
job_id - job-title - job_description
I tried this query, so when selecting any word in skills
in first table get job title
s. Like this:
SELECT *FROM users INNER JOIN jobs ON users.site_keywords || '%' + jobs.job_description + '%'"
But it didn't work.
Any help for that?
Thank you
For string macthing you should use LIKE and for string concatenation use agnostic CONCAT
"SELECT *
FROM users
INNER JOIN jobs ON users.site_keywords LIKE concat('%' ,jobs.job_title , '%') "
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.