A
A
Alexander Bondarenko2020-02-12 12:10:26
MySQL
Alexander Bondarenko, 2020-02-12 12:10:26

How to check for identical fields?

How can I check when inserting values ​​so that the names in the table do not repeat? My query is adding all names
INSERT INTO name (name) VALUES ("John")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-02-12
@bond_1013

Unique field index and INSERT IGNORE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question