Hi Guys
I have a MYSQL database on my Linux box. This database has one table which has following structure.
mysql> describe data;
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| S.No. | int(5) | NO | PRI | NULL | auto_increment |
| ID | varchar(255) | YES | | NULL | |
| PASS | varchar(255) | YES | | NULL | |
+-------+--------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)
Now in this table there are many rows which have password value equal to NULL. I have a file which is generated from a log file and this file has decoded password values in the following format.
i.e
emailid pass
e.g
talat@xyz.com talat
abc@xyz.com abc123
Can some one tell me how can i update my table via some script (or any other possible way) by first searching the the email id (from table) of password NULL in the file and then update its password column value.
Thanks in advance.
Regard
Talat