mysql 使用sql语句防止插入重复记录

insert into test_user(name) select '123' from DUAL where NOT EXISTS(select * from test_user where name='123')
相关文章
相关标签/搜索