skip to main
|
skip to sidebar
javanotes2all
Home
About
Contact
Archives
Welcome to my blog, hope you enjoy reading
Saturday, 13 July 2013
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
MySQL: Update multiple tables with multiple columns
MySQL: Update multiple tables with multiple columns
Table1
Table2
problem:
update name and productname in table1 and table2 at a time.
Query:
UPDATE `table1` as t1 join `table2` as t2 on t1.id=t2.productid SET t2.`productname`='changeproduct',t1.name='changeitem' WHERE t1.id=1
0 comments:
Post a Comment
Newer Post
Older Post
Home
Add
site views
Large Visitor Globe
Facebook Badge
Javanotes2all
Promote Your Page Too
Follow me
Follow @javanotes2all
Total Pageviews
Labels
android
(8)
database
(43)
eclipse
(17)
GWT
(20)
gwtmobile
(1)
html5
(3)
Interview faq
(5)
java
(93)
JavaScript
(1)
json
(3)
others
(3)
Phonegap
(1)
servlets
(3)
SoftwareDeveloper
(3)
Struts
(4)
SVN
(3)
tomcat
(6)
ubuntu
(24)
Wampserver
(1)
Windows
(2)
Blog Archive
►
2019
(2)
►
January
(2)
►
2018
(2)
►
April
(2)
►
2015
(9)
►
July
(5)
►
January
(4)
►
2014
(23)
►
November
(3)
►
September
(1)
►
August
(1)
►
July
(1)
►
June
(2)
►
May
(2)
►
April
(1)
►
March
(2)
►
February
(6)
►
January
(4)
▼
2013
(120)
►
December
(4)
►
November
(5)
►
October
(4)
►
September
(1)
►
August
(6)
▼
July
(6)
Short form for Java If statement
How to call URL from JAVA
case sensitive and insensitive condition in String...
case sensitive and insensitive condition in mysql
MySQL: Update multiple tables with multiple columns
Java beep sound example
►
June
(15)
►
May
(4)
►
April
(10)
►
March
(8)
►
February
(21)
►
January
(36)
►
2012
(70)
►
December
(22)
►
November
(28)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(9)
►
June
(3)
►
March
(2)
►
February
(1)
►
January
(2)
Powered by
Blogger
.
Followers
Copyright 2009
javanotes2all
. Powered by
Blogger
.
Blogger Templates
created by
Blogger Templates
WP Themes designed by
EZwpthemes
.
0 comments:
Post a Comment