Hi Guys
I have a table which has two columns
Code:
mysql> desc email;
+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| mail | varchar(255) | YES | | NULL | |
| pass | varchar(255) | YES | | NULL | |
+-------+--------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql>
Now i have a file from which i fill data in this table.The structure of file was like this
emailidpass\n
e.g
talat@xyz.comtalat123\n
shane@xyz.comshane\n
I seperated the email id and password with the following sed command.
Code:
sed 's/xyz.com/xyz.com\t/g' file > newfile
Then i load this file data in my table with following cmd.
Code:
mysql> load data local infile '/home/talat/newfile' into table email;
Now when i see the data via simple select cmd then it showes me like this.
|
basham@xyz.com | 0512879595
|
|
shakil.anwar@xyz.com | anwar
|
|
pyramids@xyz.com | chasim
|
|
tariq@xyz.com | 554321
|
|
info@xyz.com | 1234
|
|
palls@xyz.com | sllap
Now the problem is this .When i try to select any particular line with WHERE clause then it does not show me result.
Code:
mysql> select mail from email where pass= 'anwar';
Empty set (0.06 sec
)
I am unable to understand why this is happening. Plz guide.I have another table in this DB and the the select query is working fine on that table.
Regard
Talat