2014-04-01 108 views

回答

0

有很多的選擇,一個純SQL並且不需要任何事務檢查它的原子聲明:

INSERT INTO USER 
select ? as username where not exists (select 1 from user where username = ?) 
相關問題