How to re-order automatically the number of primary key column in MySql that has been set as auto_increment if one of the row deleted?

Hello,
Can anyone show me the way how to re-oder automatically the number of primary key that has been set as auto_increment in mysql database when the row deleted?
example:
No (primary key=auto increment)|
Name |
AGE |
1
    | JO
| 21
|
2
    | Kyle
| 25
|
3
    | Macy
| 30
|
When delete 1 row:
No (primary key=auto increment)|
Name |
AGE |
1
    | JO
| 21
|
2
    | Macy
| 30
|

Hello,
This is not a VB.NET question, best to ask this question in
MySQL forum.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

Similar Messages

  • How do you resolve error code 36 when trying to restore an iPad that has been reset to original settings?

    How do you resolve error code 36 when trying to restore an iPad that has been reset to original settings?

    MB-
    As far as I can tell, Error Code 36 is an "I/O Error".  It may mean you have a bad USB cable between the iPad and your computer, or the cable was not plugged in firmly.
    See if this helps with your Restore:  <iOS:  Unable to Update or Restore>.
    Fred

  • What is the best way to 'clean up" a Mac that has been going for about 2 years.  I reset safari frequently but need to be sure stuff I don't want is gone.

    What is the best way to 'clean up" a Mac that has been going for about 2 years.  I reset safari frequently but need to be sure stuff I don't want is gone.

    I'd gather by your "reset Safari"  and "clean up" you mean by sites you rather not have your mom see.
    Hidden Flash cookies are stored in "Macromedia" Folders on your computer, can delete using the free Easy Find first, but need to reinstall Flash again here
    http://www.macupdate.com/app/mac/11076/easyfind
    http://get.adobe.com/flashplayer/
    OnyX run All the cleaning and maintenance steps followed by a reboot, followed by a Disk Utility erase free space.
    http://www.titanium.free.fr/
    CCleaner is in beta for OS X, can combine the cleaning and secure erase in the same steps if properly configured.
    http://www.piriform.com/mac/ccleaner
    Every web site knows your apx location.
    http://www.whatsmyip.org/more/
    To be sure to have a clean machine, a
    Restoring OS X - 10.6  "fresh install method"
    Restoring OS X - 10.7 - wipe and install
    is the only way as you only bring files back to the machine that you know what they are, everything else is removed.
    https://discussions.apple.com/message/16276201#16276201

  • Is there a row limit that has been set in CMC for the LOVs?

    Hi,
    Is there a row limit that has been set in CMC for the LOVs? I get a 'Partial results' message for big LOVs. I am talking about BW prompts LOV`s.
    we have 22,000 LOV`s but we will get 5000 LOV`s in prompts. so we need to do manual search to get list .
    we are in 4.0 sp2 p10

    Hi,
    I understood that value need to be changed in webi_client_default_parameters.xml file but under
    "Program Files > Business Objects > BusinessObjects Enterprise 4.0 > win32_x86 > config" location I do not see
    the file webi_client_default_parameters.
    we are under 4.0 SP2 P10....
    Could some one help me out.
    Edited by: sumanmanu on Feb 8, 2012 5:24 PM

  • How can we change an old apple id in icloud that has been set in iphone and we don't have password of it?

    hi
    a friend of mine has bought a second hand iphone 5s . in icloud setting an old apple id has been set.he'd like to change it with his own , he isn't able to change it because the password of old apple id is required , and every 10 sec a message is appeared that needs a password ( find my iphone ). he has set his own apple id in itunes  store , but in i cloud he couldn't find a person that he has bought it from .how can we fix this problem .
    i'm looking forward to hearing from you .
    thank you
    sincerely

    That is "activation lock". You won't be able to use the iPhone unless this is cleared by the original owner.

  • Switch the sequence of Primary Key Columns

    Hi MaxDB experts,
    As part of our product upgrade we've made a schema change to 10 of our database tables. Typically these tables contain about 5 million rows in them. The change involves switching the order of columns in the primary key (original order SampleTime, Id; new order would be Id, SampleTime). What's the quickest way to achieve this?
    So far I've tried the following approaches without much luck:
    1. Use the "alter table alter primary key (new seuqence of columns)". Takes an average of 1 hour per table.
    2. Copy original table content into another table with "insert into newTable (select * from existingTable)" command. Takes the same amount of time as #1
    3. Tried using "Export Table" option presented by the "loadercli". Unfortunately, exported data can not be imported to a table with a different schema (in our case changed primary key column sequence).
    What else can we try? Any advise / direction would be greatly appreciated. Thanks for your time.
    Sincerely,
    Sameer Apte

    Hi there,
    ok, I assume that you figured out that you like to have data entries belonging to a specific ID stored rather nearby than scattered around in the table by TIMESTAMP or that you have more queries that specify the ID but not the TIMESTAMP.
    Both would be good reasons to perform such a change.
    Concerning the speed: basically things won't get any faster than ALTER TABLE or INSERT (SELECT * FROM)...
    The ALTER TABLE approach would have the advantage to be transactional atomic and simple to use.
    The INSERT approach would enable the use of the PREFETCHING feature for the read-I/O on the source table.
    So if you're just focussing on speed, then I'd recommend to:
    setup a data cache that can hold both source and target tables im memory
    enable prefetching by setting the parameter READAHEAD_TABLE_THRESHOLD to say 128 (be aware that you've to use MaxDB 7.6.05 or higher, but not 7.7.x  for that!)
    After you've copied each table, make sure to create the secondary indexes one by one since otherwise the internal parallelism won't be used.
    regards,
    Lars
    p.s.
    it is possible to export/import into different schemas - it's even supported via DB Studio.
    Anyhow, it wouldn't make anything quicker for this case.

  • I have created an Apple ID which has been verified but when I go to download a free app it reverts to an ols (alternate apple ID and not the one that has been verified.  I do not know the password for the old Apple ID

    I have created an apple ID whiuch has been verified however when I go to download an app mit reverts to an old apple ID and asks for a different password which I do not have.  How can I edit or delete the old (alternate) password and ensure that it only refers to the current Apple ID when requesting confirmation.  Note the old Apple iD is a gmail account and I read somewhere that you can not edit or delete gmail or me.com apple IDs?  Is this the case?

    Did you create a brand new account or change an existing Apple ID?

  • How do I change the email adress that has been set for when I forget my security questions?

    I have forgotten my security questions, and the email adress that is set for when this happens, is wrong. So how can I change it??

    You won't be able to change your rescue email address until you can answer your questions, you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down this page to update your rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • Is there a way to find all the break points that has been set in Jdeveloper

    I set break points here and there based on what i am debugging. was wondering if there is a way to find out all the break points I have set, like a summary view or something.
    Thanks

    Hello,
    You can check View --> Debugger --> Breakpoints.
    Regards,
    Simon

  • Does anyone know how to make my old blackberry curve 8900 work with my new sim card that has been set up on my 9360?

    i hate my new blackberry 9360  it never gave me a days hassle and i want to use it for the remainder of my contract as the 9360 is just a pain and full of problems and no matter what i do i cannot get an alternative phone despite the fact that i am a high spender with loyalty of over 10 years to my supplier.  i do not want to use a fixed second hand phone.  the reason we get a new phone is emphasis on new.
    Solved!
    Go to Solution.

    back to using a proper phone - please make some more blackberrys like the old 8900 as it is a sturdy, reliable phone.
    so my paid for brand new but got second hand repaired 9360 will sit in a box for two years.

  • How to modify primary key column?

    I want to modify one primary key column, But TT reported error.
    How do I modify primary key column? Thanks first.

    In TimesTen, the values in primary key columns cannot be updated (except for the trivial case where you update the value to the same value as it currently has). If you want to change the values stored in primary key columns the application must insert a new row with the new key values (and of course values for the other columns) and then delete the old row.
    Chris

  • Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1.

    Question
    Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1. The security shows permissions for the web site but doesn't recognize that I've been accessing the web page every day since I updated to 6.0.1. Web page trying to access is <http://classic.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:98108.5.99999> This home page worked fine on earlier versions of Firefox and continues with Internet Explorer 9.0.

    Looks like its been fixed for me, not by 6.0.1 but by - Todd Siechen from http://www.dvdthemepak.com
    Check out his post at:
    http://discussions.apple.com/thread.jspa?threadID=335417
    Todd... I love you xxx
    After having a nightmare since first day of version 6.0.0 and still no fix after 6.0.1, even after Apple requested the files... You fixed my problem... Checked for duplicate fonts and found about 5, selected "Resolve Duplicates" and everything great, even with old projects... You should work for Apple!
    Check out the 2 posts:
    http://discussions.apple.com/thread.jspa?threadID=313109
    http://discussions.apple.com/thread.jspa?threadID=366383
    1) The first and biggest culprit we found to be causing problems is with font issues. In order to alleviate this problem, open Font Book and make sure all the Fonts that are turned on have no dots next to them. If they do then select them and select "Resolve Duplicates" from the Edit menu. If you are using a different font manager then use whatever tool is available to make sure no duplicate fonts are loaded. iDVD 6 is very sensitive to this.
    Many many many many many many many many many many many many many thanks.
    Regards,
    Charles Teton
    United Independent Pictures Ltd.
    http://www.makingmymovie.com

  • How do I delete an album from my iPad that has been synced on my Mac?

    How do I delete an album from my iPad that has been synced on my Mac?

    Unselected the album in iTunes on your Mac and sync again. That will delete the album on your iPad.

  • "An I-Pod has been detetected but Itunes does not recocognize the device.  The device does not show up on ITunes.  Help?

    When I hooked up my new Ipod Nano, The message in I-Tunes reads, "An I-Pod has been detected but Itunes does not recognize the device"  Any ideas to help?

    Hi mulebacker,
    Here is an article that provides troubleshooting steps for this message:
    iPod nano: Error message saying that iPod 'could not be identified properly'
    http://support.apple.com/kb/ts3218
    Cheers!
    - Ari

  • I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be

    I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be recovered under these circumstances?

    If you never bought the product then you cannot get the serial number.

Maybe you are looking for

  • External hard drive is not recognized anymore

    For a couple of months i have been backing up my stuff on an external hard drive (Verbatim) no probs. Last time I didn't close the external hard drive down properly. Now my Macbook does not recognize the external HD any more. I have tested the extern

  • Onestep DVD in folders, not file

    Thanks in advance for any help. I have been trying unsuccessfully to get my movies from Final Cut Express or iMovie into a format that is decoded accurately on a Windows machine. I read that iDVD automatically converts to an mpeg-2, so I used Onestep

  • Execute query not workin on application server

    i have upgraded my form to 10.1.2.0.2 successfully and can host them using the application server .... in the form i have got various tab canvas,stacked canvas,contect canvas..... but my execute query function is not working ...dont know why

  • Kit for installing SSD in place of DVD Drive on DV6-6011TX

    Can anyone please let me that whether it is possible to replace DVD drive on my DV6-6011TX with an SSD Drive (+kit to install it)? Any help will be greatly appreciated. Thank you and regards, Babur This question was solved. View Solution.

  • Working with HD video in FC Studio 2?

    Presently only have FC Studio 2 to edit with. I know some HD video is coming my way. 2 questions - Will I be able to edit HD in FCS2 and are there particular settings or steps I need to do in order to work with it. Thanks all.