表A包含一列Last login: Mon May 22 10:54:30 on ttys003
mkdir: /Users/<username>/.bash_sessions: Device not configured
-bash: /Users/<username>/.bash_profile: Device not configured
touch: /Users/<username>/.bash_sessions/35166655-583B-47CC-9BCF-5E785DD5E46E.historynew: Device not configured
表B包含id(string)
列ids(string)
,如"id1,id2,id3"
加入A和B,我希望A.id可以在B.ids中找到:
select count(1) from
(select id from A) as t1
join
(select ids from B) as t2
on find_in_set(t1.id, t2.ids) != 0;
然后我看到了:
[错误10017]:第1:91行在JOIN'0'
中遇到左右别名
如果我将!=
更改为=
,则错误仍然相同。
如何解决这个问题?