Solved

Mysql database - RESET or FLUSH command help, urgent question

Posted on 2004-04-24
4
393 Views
Last Modified: 2012-08-13
I have an urgent question.
How do I reset the data in a Mysql database table. I need to reset the values of a certain field to Zero. I have a PTR site and need the clicks reset to zero. Can anyone help? I think I should use the Reset or Flush command but I'm not sure how to do this correctly.

Thanks in advance!
Pat
0
Comment
Question by:plovell66
4 Comments
 
LVL 2

Accepted Solution

by:
LordSilk earned 500 total points
ID: 10912736
Hi,

Why don't you just update the field in the table?

update <tablename>
set <fieldname> = 0

This will set all values of the column <fieldname>  in the table <tablename> to zero.
For more info on the update statement : http://dev.mysql.com/doc/mysql/en/UPDATE.html

The Flush and Reset commands are used to clear the cache of the MySQL server, not the data...



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Creating and Managing Databases with phpMyAdmin in cPanel.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now