私はSQLPlusでこの問題を抱えています:
このコードから:
select distinct username, name, surname
from users
where username in ('user1', 'user2');
私は得る:
username name surname
--------------- -------------- -------------
user1 Alex Ander
しかし、私は必要です:
username name surname
--------------- -------------- -------------
user1 Alex Ander
user2 not exists not exists
またはこのようなもの。ユーザーが存在しない場合、テーブルはユーザー名を書き込む必要があり、残りも「存在しない」などのようになります。
助けてください、
ありがとう、