MySQL database query returns empty result
        Posted  
        
            by 
                user1791096
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1791096
        
        
        
        Published on 2012-11-01T10:54:31Z
        Indexed on 
            2012/11/01
            11:00 UTC
        
        
        Read the original article
        Hit count: 342
        
I am doing a data migration and getting empty result of simple query with one join. Following is the query
Select * from users u INNER JOIN temp_users tu ON tu.uid = u.uid
There hundreds of records which have same uid in both tables, but this query returns only one record.
Following is the structure of tables
users table
uid:  varchar(50)   utf8_general_ci         Yes     NULL 
temp_users table
uid: varchar(50)    utf8_general_ci         Yes     NULL    
Is there anyone who faced same problem?
© Stack Overflow or respective owner