Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3950846
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:39:36+00:00 2026-05-20T01:39:36+00:00

I am at a loss this morning. Maybe my coffee was drugged? Simple problem-

  • 0

I am at a loss this morning. Maybe my coffee was drugged? Simple problem- get the existing ids into this temp table for an export.

Tables like so:

Table person

+--------+-----------------------+
| id     | email                 |
+--------+-----------------------+
| 142755 | xxxxxxx@xxxxxxxxx.com |
+--------+-----------------------+

Table no_dma

+--------+------------------------+
| person | email                  |
+--------+------------------------+
|     0  | xxxxxxx@xxxxxxxxx.com  |
+--------+------------------------+

Query:

UPDATE 
person, no_dma
SET no_dma.person = person.id
WHERE person.email = no_dma.email;

I have verified the existence of at least some matching email addresses in the two tables but the update produces

Query OK, 0 rows affected (9.31 sec)
Rows matched: 0  Changed: 0  Warnings: 0

Clearly I have a little dain bramamge today.

Help me out? What am I doing incorrectly?

// EDIT

Per comments below I made these queries:

mysql> select person, email from no_dma limit 0,1;
+--------+------------------------+
| person | email                  |
+--------+------------------------+
 |     0 | tom_r1989@xxxxxxx.com
+--------+------------------------+
1 row in set (0.00 sec)

mysql> select email from no_dma where email = 'tom_r1989@xxxxxxx.com';
Empty set (0.00 sec)

mysql> select email from no_dma where TRIM(email) = 'tom_r1989@xxxxxxx.com';
Empty set (0.46 sec)

Both tables have email field stored as varchar with collation set to latin1_swedish_ci.

And this this query, WTH?

mysql> SELECT CONCAT('"',email,'"') from no_dma limit 0,3;
+-----------------------+
| CONCAT('"',email,'"') |
+-----------------------+
"  |amjor308@xxx.com
"   |utt@xxx.com
"  |00000000@xxx.com
+-----------------------+


mysql> SELECT email from no_dma limit 0,3;
+--------------------+
| email              |
+--------------------+
 |+amjor308@xxx.com
  |mutt@xxx.com
 |000000000@xxx.com
+--------------------+

What is going on there? Looks like newlines but I thought TRIM() handled those?

mysql> SELECT TRIM(email) from no_dma limit 0,3;
+--------------------+
| TRIM(email)        |
+--------------------+
 |+amjor308@aol.com
  |mutt@excite.com
 |000000000@aol.com
+--------------------+
3 rows in set (0.00 sec)

UPDATE: FOUND ISSUE
import was done on a Windows generated CSV but mysqlimport was given arg

–lines-terminated-by=’\n’

Reimported data works fine.
Sorry to have wasted folks time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:39:37+00:00Added an answer on May 20, 2026 at 1:39 am

    Table no_dma has a trailing space. The data is not the same.

    Edit:

    • SET ANSI_PADDING?
    • Is it really a space:   is ASCII 160
    • What does a hash or checksum of each value reveal?
    • What are the string lengths?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple issue but I'm at a loss to debug this further. I followed the
I'm at a loss, I can't see the reason something as simple as this
I am currently at a loss with this particular bit of HTML/CSS problem. I
I am at a real loss at this problem. I just created a plug-in,
This is pretty simple but I'm at a loss: Given this type of data
I'm at a loss why this loop stops after the first item. Can someone
I'm sorta at a loss to why this doesn't work considering I got it
Forgive me if this is a naïve question, however I am at a loss
Once again, I'm at a loss with IE7 on this one. I'm making a
So I'm at a loss with this one. My error is: Missing these required

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.