我要選擇/檢查基於另一列值像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%'