select user_id,name, login,lastseen from users where user_id
in((select friend_id from connections where user_id=1 and connection=1)
union (select user_id from connections where friend_id=1 and connection=1))
私はこのような仕事をしていますが、このクエリはエラーを表示しています。私がこのサブクエリを独立して実行しても、バックセットなしで正常に動作しています。 ともどのように私はUnion in SQLサブクエリの使用方法
何特にDBにタグをつけるください使っていますか。 –