MySQL Forums
Forum List  »  Spanish

Updata with out where..
Posted by: Hector Valencia Higuera
Date: November 26, 2013 06:16PM

Disculpen..

Tengo el siguiente query:

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

Que haría exactamente?

Lo que pasa es que lo ejecute y despues me di cuenta que no tenia where,
pienso que el primer AND lo convirtio en WHERE dado que hizo lo que suponia queria que hiciera... pero pues no trae WHERE y solo quiero salir de la duda..

Es decir:

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

es igual a:

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



Edited 1 time(s). Last edit at 11/26/2013 07:01PM by Hector Valencia Higuera.

Options: ReplyQuote


Subject
Views
Written By
Posted
Updata with out where..
1476
November 26, 2013 06:16PM
684
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.