0

¿Cómo puedo evitar que se repitan los registros en una base de datos usando java y mysql?

Estoy haciendo un formulario de registro, pero quiero saber cómo evitar la repetición de registros (que me mande un mensaje -> el usuario ya existe.)

13th Aug 2018, 4:30 PM
Oswaldo Ibarra
Oswaldo Ibarra - avatar
1 Réponse
+ 1
Use primary key or on duplicate key update the existing records. https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html
24th Aug 2018, 10:26 AM
Mayur Shedage
Mayur Shedage - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes