Jump to content

need help on load data infile


pixeltrace

Recommended Posts

guys,

 

i need help, i usually uploads csv to our database and currently this is my code

LOAD DATA INFILE 'test_users.csv' 
INTO TABLE test 
FIELDS 
    TERMINATED BY ',' 
    OPTIONALLY ENCLOSED BY '"' 
    ESCAPED BY '\\' 
LINES TERMINATED BY '\n'
(id, name, username, email, md5(password), usertype, block, sendEmail, gid, registerDate, lastvisitDate, activation, params);

 

this one is working if i replaced md5(password) with just password

my problem now, i need the password to be in md5 format.

 

what is the correct code for this?

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/56642-need-help-on-load-data-infile/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.