Solved

MySQL Update

Posted on 2013-11-13
2
344 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
2 Comments
 
LVL 5

Accepted Solution

by:
warddhooghe earned 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now