我要选择/检查基于另一列值像SQL语句中的SQL变量查询?
SELECT tableA.randomID, wp_posts.post_content, wp_posts.ID
FROM tableA, wp_posts
WHERE wp_posts.post_content LIKE '%tableA.randomID%'
AND tableA.randomID = '110507B2VU'
但没有工作,我怎么设置LIKE语句
这不起作用在文本列中的值:
SELECT tableA.randomID, wp_posts.post_content, wp_posts.ID
FROM tableA, wp_posts
WHERE wp_posts.post_content LIKE '%110507B2VU%'