INNER JOIN topic ON topic.sort_id LIKE '%sort_sort.id%'这样写不对,因为 '%sort_sort.id%' 中的 sort_sort.id 变成了字符串INNER JOIN topic ON topic.sort_id LIKE '%"& sort_sort.id &"%'
而一般的这样写也不对,因为 sort_sort.id 没有赋予其变量名。应该怎么写呢????
而一般的这样写也不对,因为 sort_sort.id 没有赋予其变量名。应该怎么写呢????
on topic.sort_id = sort_sort.id
from topic,sort_sort
where rtrim(topic.sort_id) LIKE '%sort_sort.id%'
on rtrim(topic.sort_id) LIKE '%sort_sort.id%'