V
V
vova12132018-04-10 10:12:46
MySQL
vova1213, 2018-04-10 10:12:46

Is it possible to uniqueize identical values ​​in phpMyAdmin by adding numbers to them (entry, entry 1, entry 2....)?

Hello. You need to uniqueize values ​​in the same database column if they are repeated. That is, change the values ​​from "entry", "entry", "entry" to "entry", "entry 1", "entry 2"... Is it possible to implement this in phpMyAdmin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman MySQL, 2018-04-10
@vova1213

it is possible, for example

SET @tempVariable = 0;

UPDATE myTable SET col1 = 5, col2 = (@tempVariable := @tempVariable + 1);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question