467,878 Members | 1,245 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,878 developers. It's quick & easy.

Using data in one table to update data in another table

------=_NextPart_000_0013_01C352C0.6B0A6E30
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,
Is it possible in MySQL to use UPDATE to update fields in one table =
with
data from another table? For example, the following code seems to be the
answer but fails with a syntax error in MySQL:
=20
UPDATE test_demo1.products SET nontaxable=3D(SELECT IMFSalesTax FROM
IDX.InvMasFile);
=20
Here the data from the field IMFSalesTax in table InvMasFile, database =
IDX,
is being used to update the field nontaxable in table products, database
test_demo1.
=20
Any suggestions/workarounds will be greatly appriciated.
=20
=20

Chris

=20

------=_NextPart_000_0013_01C352C0.6B0A6E30--
Jul 19 '05 #1
  • viewed: 4237
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Redd | last post: by
reply views Thread by Chris Nighswonger | last post: by
4 posts views Thread by fmatamoros | last post: by
2 posts views Thread by =?Utf-8?B?VEQgaXMgUFNQ?= | last post: by
6 posts views Thread by insirawali | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.