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 6556117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:54:12+00:00 2026-05-25T12:54:12+00:00

CentOS 4 or 5, with MySQL 5.0.77: mysql> UPDATE -> `userTable` -> INNER JOIN

  • 0

CentOS 4 or 5, with MySQL 5.0.77:

mysql> UPDATE
   ->  `userTable`
   -> INNER JOIN `anotherTable`
   ->   ON `userTable.userid`=`anotherTable.userid`
   -> SET `userTable.someField`="Jimmy Page"
   -> WHERE `userTable.someField`="Jim Morrison"
   ->   AND `anotherTable.date` < NOW();
ERROR 1054 (42S22): Unknown column 'userTable.someField' in 'field list'
mysql>
mysql> SELECT count(someField) FROM userTable;
+---------------+
| count(someField) |
+---------------+
|          5076 |
+---------------+
1 row in set (0.00 sec)

mysql>

I did enter the someField and userTable into the SELECT statement by mouse-copy/pasting in the terminal, so I know that it is not a typo issue. What could be the issue here?

Thanks!

  • 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-25T12:54:13+00:00Added an answer on May 25, 2026 at 12:54 pm

    The tick marks are used for quoting columns and table names. With the dot in the quotes, it is not seeing that as a divider between the parts. Add a couple extra tick marks to correct it.

     UPDATE
      `userTable`
     INNER JOIN `anotherTable`
       ON `userTable`.`userid`=`anotherTable`.`userid`
     SET `userTable`.`someField`="Jimmy Page"
     WHERE `userTable`.`someField`="Jim Morrison"
       AND `anotherTable`.`date` < NOW();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to update MySQL from 5.1 to 5.5 in CentOS 6.2. The following
So I've set up a MySQL chroot on CentOS. MySQL is effectively confined to
We're running a CentOS server with a lot of MySql databases atm, what I
I have using mysql 5.1 with cpanel /whm centOS. I had to use trigger
I have a website in PHP, Lighttpd. It uses also MySQL on Centos 5.
Just setup a new rails 3.1.3 app using mysql (mysql2 gem) on CentOS 5
I have a Spring+hibernate+mysql+jstl architecture, running in a linux CENTOS production enviroment. I added
Hi We're a small web development company with 3 Lunarpages dedicated Plesk/Apache/MySQL/CentOS servers hosting
I'm trying to get the MySQL-python lib installed on centos 5.5. I ran sudo
I'm running: CentOS 5.5 x86 cPanels-11.26.20 RELEASE Apache 2.2.16 PHP 5.3.3 --with-mysqli=mysqlnd MySQL 5.1.51

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.