Klycior
28.07.2010, 00:17:09
Witam,
W members mam pole o nazwie dolar oraz pole odpowiadające za id czyli member_id.
Chciałbym przenieść to pole do tabeli pfields_content pod nazwą field_12 (Takie samo pole ID).
Jak czegoś takiego dokonać ?
Dodam że w tabeli members mam jeszcze kilka innych pól.
nospor
28.07.2010, 06:31:26
http://dev.mysql.com/doc/refman/5.0/en/update.htmli przykład z tej strony:
Cytat
You can also perform UPDATE operations covering multiple tables. However, you cannot use ORDER BY or LIMIT with a multiple-table UPDATE. The table_references clause lists the tables involved in the join. Its syntax is described in Section 12.2.8.1, “JOIN Syntax”. Here is an example:
UPDATE items,month SET items.price=month.price
WHERE items.id=month.id;