This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Deleting all data in a Commentics table in myPhp
#1

Hi,
We are getting ready to open our Christmas help section and want to delete all 18,000 comments from the previous year in the Christmas table in myPhp. I am needing direction on the proper way to do this. Is it the truncate or drop command? I do not want to damage the table so would appreciate input.
Thank you!

Jon
Reply
#2

(31-Aug-2013, 02:19 PM)2hands Wrote:  Hi,
We are getting ready to open our Christmas help section and want to delete all 18,000 comments from the previous year in the Christmas table in myPhp. I am needing direction on the proper way to do this. Is it the truncate or drop command? I do not want to damage the table so would appreciate input.
Thank you!

Jon

To correct my above question, I am using phpMyAdmin, not myphp. Thanks again for any input.
Reply
#3

Hi Jon,

It's the truncate command. This will delete all of the data in the table.

The drop command would delete the table itself so don't do that.

After truncating the 'comments' table, also truncate the 'reporters' and 'voters' tables.

Have you completed the interview?
Reply
#4

Make a backup of the database first just to be safe.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by gongong
18-Feb-2017, 04:16 AM
Last Post by Steven
07-Jul-2015, 05:57 PM
Last Post by Steven
29-May-2015, 08:51 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)