これらが私の2つのテーブルだと想像してください。
テーブルuser_infouser_id、user_name、password
挿入されているユーザー名が使用可能なuser_nameレコードと照合され、一致するuser_nameがない場合は挿入する、JavaDB挿入ステートメントをコンパイルしたいと思います。
さて、私はこれをやろうとしています、
insert into user_info (user_name, password) values ('someusername', 'password')
where not exists (select user_name from user_info where user_name = 'someusername');