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

  • SEARCH
  • Home
  • 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 7992151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:29:10+00:00 2026-06-04T13:29:10+00:00

The item_category_id column is auto increment value in the mysql table. I need to

  • 0

The item_category_id column is auto increment value in the mysql table.

I need to delete all the values & next insertion should start from 1. If i delete all values & try to insert a new row then it starts with some 30’s & 40’s.

  item_category_id  item_category_name
    1                     qqq
    25                    ccc
    32                    vvv
    29                    bb
    4                     bbb
    31                    hhh
    34                    mmm
    33                    rrr
  • 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-04T13:29:11+00:00Added an answer on June 4, 2026 at 1:29 pm
    ALTER TABLE TABLENAME AUTO_INCREMENT = 1
    

    Instead of using Delete if you use Truncate that will remove data and will also reset autoincrement.

    TRUNCATE TABLE TABLENAME
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get all the image_name values from one of my tables where
I have a table which has a column labeled 'sortorder' which is used to
I have a Spinner bound to a database column by a cursor. All the
I have three mysql tables items =========== id title items_in_categories ============================ id item_id category_id
Item 1 <div id=i2><span id=e2>Item 2</span></div> When I click on Item 1 it should
I have a simple MySQL query like: SELECT * FROM `content_category` CC , `content_item`
I am receiving a NullReferenceException when trying to add a record to a table
I'm creating templates for a Django project, and I need to create a three
Judging from the result of my last inquiry , I need to calculate and
I have a big mysql query which needs to trawl through 4 tables to

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.