update or delete all records
Hi everyone!
Im making a site with PHP, and wonder if i can achieve this:
First: Let's say that the db has 30 records in a table, and i want to change a particular data in all the records. How can i do this?
Second: In the same way, how can i delete all the records of that table?
For example:
table 'example'
cols id, title, content, description
If i want to "reset"(change it's value to none, for example) the 'description' value in all the records of that table, how can i do that?
And second: how can i truncate the whole table? (TRUNCATE = dump all the data inside the table, right?)
All of this from php, not from phpmyadmin lol!
Thanks in advance
Cheers!
