DriWashSolutions Posted September 29, 2004 Share Posted September 29, 2004 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 Quote John Skurka Link to comment Share on other sites More sharing options...
Jack_mcs Posted September 29, 2004 Share Posted September 29, 2004 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 Quote 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 More sharing options...
DriWashSolutions Posted September 29, 2004 Author Share Posted September 29, 2004 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 <{POST_SNAPBACK}> EXCELLENT - Exactly what I was looking for, and yes indeed, it did work. Thanks Jack. Quote John Skurka Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.