Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

phpMyAdmin


pjones

Recommended Posts

I need to use phpMyAdmin to delete all credit card numbers in my database. I know I can delete the entire order table, but I just want to clear the card numbers. Anyone know how to do this?

Link to comment
Share on other sites

use a simple SQL command or edit each manually

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Stop! Wait! Not DELETE! :onfire:

 

I think you want to remove the data in the orders table field cc_number

 

Use UPDATE orders set cc_number='' where <add conditions here>

 

DELETE is remove the order itself.

Link to comment
Share on other sites

I do want to clear the cc_number field, not delete the order. Is there a simple way to do this in phpMyAdmin? I'm not familiar with the exact mysql syntax, so any help would be appreciated. I hoped there would be a simple gui process to do this.

Link to comment
Share on other sites

What is the conditions for when you want to clear them?

 

The UPDATE command can set the value of the field for everything or based on a condition in the where statement.

Link to comment
Share on other sites

UNTESTED. Backup. :D

Good thing I used that disclaimer :D

 

DELETE deletes rows from table_name that satisfy the condition given by where_definition, and returns the number of records deleted.

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...