2014-04-01 110 views

回答

0

有很多的选择,一个纯SQL并且不需要任何事务检查它的原子声明:

INSERT INTO USER 
select ? as username where not exists (select 1 from user where username = ?) 
相关问题