Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 16-09-06
1BIZLIST's Avatar
In need of a mentor!
 
Join Date: Mar 2006
Posts: 297
Thanks: 0
Thanked 0 Times in 0 Posts
1BIZLIST is an unknown quantity at this point
  AUTO_INCREMENT value

Hi all,

Does anyone know of a command that clears data from a table and also resets any auto-increment values to 0, I am using DELETE at the moment, but that does not reset the auto_increment.

Or other than that is there a variable that I can use to UPDATE the AUTO_INCREMENT value?

I'm using php and mySQL.

Many Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 16-09-06
andy2004's Avatar
Registered User
 
Join Date: Mar 2004
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
andy2004 is an unknown quantity at this point
mysql_query("TRUNCATE TABLE `table_name`");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-09-06
1BIZLIST's Avatar
In need of a mentor!
 
Join Date: Mar 2006
Posts: 297
Thanks: 0
Thanked 0 Times in 0 Posts
1BIZLIST is an unknown quantity at this point
Aaahhh! exactly what I was looking for I had tried most variations of that as it is the command shown in phpmyadmin, but couldn't quite get it.

Thanks very much.

Mark.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7