MySQL Forums
Forum List  »  Spanish

Re: Updata with out where..
Posted by: Jesús Uzcanga
Date: November 27, 2013 10:09AM

Hector, en realidad la consulta original esta mala y en teoría no debería haber funcionado.

Lo correcto es

UPDATE table_name SET camp01=14785 WHERE camp02=43710 AND camp03=1;

Tambien podrías aplicar el update sobre varios campos al mismo tiempo pero para esto deberías hacer lo siguiente (separando los campos con comas)

UPDATE table_name SET camp01=14785,camp02=43710,camp03=1;

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
1475
November 26, 2013 06:16PM
Re: Updata with out where..
682
November 27, 2013 10:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.