Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help me Delete CC numbers in DB


DriWashSolutions

Recommended Posts

Hi all,

 

Just wondering if someone could tell me what the phpMyAdmin/mySQL command is to delete the value of a given field in all the records. I need to do a global delete for my CC number field, as the entire number is being stored in the DB.

 

I'm using Linkpoint API, and don't need these numbers, and the LinkPoint Contrib developer has not helped me get rid of the numbers in the application.

 

So, I'd like to be able to do this in one fell swoop, without having to go and edit each record manually with phpMyAdmin.

 

Thanks

John Skurka

Link to comment
Share on other sites

Don't do a delete, just update the data. I haven't tried this but it should work. Make a copy of the table and try it on the copy first.

UPDATE ORDERS SET cc_number=NULL;

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Don't do a delete, just update the data.  I haven't tried this but it should work.  Make a copy of the table and try it on the copy first.
UPDATE ORDERS SET cc_number=NULL;

 

Jack

 

EXCELLENT - Exactly what I was looking for, and yes indeed, it did work.

 

Thanks Jack.

John Skurka

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...