![]() |
Need MySQL help with short query..
I have two tables A and B. I want update table A with all entries from table B. Tables have different structures but 2 colums that I want to copy are the same. Help brother out.
|
If you're ever scratching your head about a command, do a search for "COMMAND mysql" and the mysql site is usually the first result.
I presume you want something like this... INSERT INTO table_B (column1,column2) SELECT column1,column2 FROM table_A; Back up your data first. |
Quote:
|
Ok, case closed. Figured it out.
|
So what was the answer? :) REPLACE INTO?
|
Love these threads...
HELP ME HELP ME... Okay FUCK OFF... I GOT IT... Yeech... at least post what you did that fixed it. |
Quote:
UPDATE videos v, banners b SET v.BANNER_NAME = b.BANNER_NAME, v.BANNER_URL = b.BANNER_URL WHERE v.VIDEOID = b.VIDEOID |
All times are GMT -7. The time now is 03:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123