How To Reset Table Auto Increment Column Id In MySQL (PHPMyAdmin)

How To Reset Table Auto Increment Column Id In MySQL (PHPMyAdmin)

Haritha Computers & Technology

7 лет назад

75,104 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

INFERNO GAMING
INFERNO GAMING - 07.11.2023 20:58

If i use this statement with servlet that would work ? After deleting specific data ?

Ответить
Haf Sa
Haf Sa - 30.10.2023 12:18

thank you so much for this tuto i can't believe that you released this life saver 6 years ago .

Ответить
James Bond
James Bond - 27.06.2023 16:17

Will the row being in auto increment and correct serial numbers?

Ответить
Blackarch
Blackarch - 24.02.2023 07:38

Thank You Sir You Reduced My Stress 💗💖🥺

Ответить
Ganesh Bisoi
Ganesh Bisoi - 11.12.2022 07:34

Thank you so much sir for this video.

Ответить
Football Addictor
Football Addictor - 30.09.2022 22:40

$query= "DELETE FROM ".$tableName." WHERE ".$conditionData SET @autoid :=0; UPDATE live SET id = @autoid := @autoid+1; ALTER TABLE live AUTO_INCREMENT = 1;



any one pls correct it

Ответить
Koga Shinto
Koga Shinto - 16.07.2022 18:03

SET @autoid :=0;
UPDATE table_name SET id = @autoid := (@autoid+1);
ALTER TABLE table_name Auto_Increment = 1;

Ответить
Abrar
Abrar - 22.03.2022 18:50

thanks allot sir ...
this is very helpfulllllllllllllllllllllllllllllllllllllllllllllll

Ответить
Fryz
Fryz - 18.03.2022 19:56

set @autoid :=0;
update `show` set showid = @autoid := (@autoid+1);
alter table `show` Auto_Increment = 1;

Ответить
Lifted Up
Lifted Up - 24.02.2022 17:10

Thank you for helping me!

Ответить
Crypto Buzzz
Crypto Buzzz - 22.01.2022 09:14

How to restore posts from phpmyadmin after being deleted permanently from trash?

Ответить
Freelancer Tahsan
Freelancer Tahsan - 23.12.2021 07:22

It's Working! Thank you so much!

Ответить
TwoWheelTales
TwoWheelTales - 08.09.2021 17:52

set @autoid :=0;
update TABLE_NAME set id = @autoid := (@autoid+1);
alter table TABLE_NAME Auto_Increment = 1;

Ответить
TwoWheelTales
TwoWheelTales - 08.09.2021 17:51

thanks sir

Ответить
Business
Business - 28.08.2021 18:15

better~❤

Ответить
Ramiro Estevez
Ramiro Estevez - 26.08.2021 03:39

it would be very usefull if you include the code in the description so as to copy paste it

Ответить
Ramiro Estevez
Ramiro Estevez - 26.08.2021 03:38

thank you, it work without a hitch

Ответить
Mijail
Mijail - 21.06.2021 05:49

set @autoid :=0;
update employee set id = @autoid := (@autoid+1);
alter table employee Auto_Increment = 1;

Ответить
Benny Lee
Benny Lee - 18.04.2021 23:45

you don't use DBCC CHECKIDENT(tableName, RESEED, 0) ?

Ответить