Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL query error ?!? Work with other database

Status
Not open for further replies.

LinuXelite

Programmer
Jun 21, 2002
150
CA
UPDATE (factures INNER JOIN factures_details ON factures.COMMANDE_R = factures_details.COMMANDE_L)
INNER JOIN dictionnaire_items_total ON (factures_details.NOCOMPAGNIE = dictionnaire_items_total.NOCOMPAGNIE)
AND (factures_details.ITEM_CODE = dictionnaire_items_total.ITEM_CODE)
AND (factures_details.LINE_CODE = dictionnaire_items_total.LINE_CODE)
SET factures.categorie = dictionnaire_items_total.categorie
WHERE (((factures.categorie)=""))
LIMIT 50;


Error:

Error: 1064 - You have an error in your SQL syntax near '(factures INNER JOIN factures_details ON factures.COMMANDE_R = factures_details.' at line 1


Any idea??? The same query works with others databases such as dbase.
 
So far as I know, MySQL does not support updates across joins.

The summary of the syntax of the UPDATE command ( uses the phrase "tbl_name" to describe what you are updating. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top