Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MySQL Update

Posted on 2013-11-13
2
Medium Priority
?
353 Views
Last Modified: 2013-11-13
I have wrote a statement to identify the columns I want to update

select female_names_males.cname, tbl.cname, tbl.genderid from female_names_males
inner join tbl on female_names_males.cname = tbl.cname 
where tbl.genderid = '2'

Open in new window


This runs fine and identifies the rows between both tables

I now want to update the rows and thought this would work

Update tbl
set tbl.genderid = '1'
inner join tbl on female_names_males.cname = tbl.cname 
where tbl.genderid = '2'

Open in new window


Any Ideas
0
Comment
Question by:Brogrim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
warddhooghe earned 2000 total points
ID: 39644591
update table inner join other_table
set ... etc
0
 

Author Closing Comment

by:Brogrim
ID: 39644687
as Homer would say DOH, thank you
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question