Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7920341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:10:52+00:00 2026-06-03T16:10:52+00:00

I deleted all rows from the database that had a value of 1, in

  • 0

I deleted all rows from the database that had a value of 1, in the no column, from the database (each row either had a 1 in the yes and 0 in the no or 0 in the yes and 1 in the no). However, now I would like to redo the id column to reflect this change.

For example, I would like the first row(name of DEYRO) to have an id of 1, ELEHC to have an id of 2, AEHSN to have an id of 3, etc all the way until the end of the database(roughly 100 rows but I’m not sure)

Here is an image of what the database looks like:

mysql database screen shot

Any help would be appreciated, either through phpmyadmin or via an SQL query or something like that.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:10:53+00:00Added an answer on June 3, 2026 at 4:10 pm

    you might want to truncate the table and run a script to add the records individually since id field is autoincrement.

    hope this helps.

    Rhian A.
    10-05-2012 NZT

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The situation is that I deleted rows from the database and now they are
I have a database that had several tables full of thousands of rows of
I have a listview which loads its data from sqlite database. Each row in
I erroneously delete all the rows from a MS SQL 2000 table that is
I'm trying to write a macro to delete all rows that have True in
I would like to delete all the rows found by that query: SELECT cart_abandon.*
I am trying to compare two tables to find rows in each table that
I have a database table that has >14 million rows. If I attempt to
Recently, one of our clients has deleted two million rows from a table. Here
I am using oracle database.I want to use duplicate rows from a table except

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.