By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

Filter database with list from a text file

P: 1
I have a large list of email addresses "on other server" that I have found are undeliverable to users"unsubscriber email", I want to mark a field in mysql to 1 where there is this email address???
I'm trying this

update user set styleid = 1 where email =
load_File('//ip add/email.txt')

but it dose not work
Please is there any Answer
Jul 14 '11 #1
Share this Question
Share on Google+
1 Reply


mwasif
Expert 100+
P: 801
Use LOAD DATA INFILE to import the contents of file to a table and then update the respective table with a JOIN.
Jul 17 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.