mysql 使用sql語句防止插入重複記錄

insert into test_user(name) select '123' from DUAL where NOT EXISTS(select * from test_user where name='123')
相關文章
相關標籤/搜索