Comportamiento normal?

05/11/2009 - 17:24 por Luis Mata | Informe spam
Hola

hago esto:

select * from sidetcom where nunumdoc = 80050367

2 2008-00067 0080050367 0 BOL 0 3.34 2008-09-09 00:00:00.000
23 2008-00093 80050367 0 BOL 0 3.34 2008-10-22 00:00:00.000

Luego hago esto:

UPDATE sitabcct set nunumdoc = 80050367 where nunumdoc = 80050367

y solo me actualiza el ultimo registro, porque en el select me reconoce los
2 y en el update solo uno.

Luis

Preguntas similare

Leer las respuestas

#6 Aguardientico
06/11/2009 - 00:43 | Informe spam
Hola Luis:

No se si tiene que ver pero te das cuenta que estas haciendo select de una
tabla diferente a la que haces update?

"Luis Mata" wrote in message
news:#
Hola

hago esto:

select * from sidetcom where nunumdoc = 80050367

2 2008-00067 0080050367 0 BOL 0 3.34 2008-09-09 00:00:00.000
23 2008-00093 80050367 0 BOL 0 3.34 2008-10-22 00:00:00.000

Luego hago esto:

UPDATE sitabcct set nunumdoc = 80050367 where nunumdoc = 80050367

y solo me actualiza el ultimo registro, porque en el select me reconoce
los 2 y en el update solo uno.

Luis

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4577 (20091105) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__________ Information from ESET NOD32 Antivirus, version of virus signature database 4577 (20091105) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Respuesta Responder a este mensaje
#7 Luis Mata
06/11/2009 - 10:56 | Informe spam
Tienes toda la razon, esto fue un lapsus brutus.
Disculpen las molestas caballeros

Luis
"Aguardientico" <gusgon1 at nospam dot com> escribió en el mensaje de
noticias news:ODec$
Hola Luis:

No se si tiene que ver pero te das cuenta que estas haciendo select de una
tabla diferente a la que haces update?

"Luis Mata" wrote in message
news:#
Hola

hago esto:

select * from sidetcom where nunumdoc = 80050367

2 2008-00067 0080050367 0 BOL 0 3.34 2008-09-09 00:00:00.000
23 2008-00093 80050367 0 BOL 0 3.34 2008-10-22 00:00:00.000

Luego hago esto:

UPDATE sitabcct set nunumdoc = 80050367 where nunumdoc = 80050367

y solo me actualiza el ultimo registro, porque en el select me reconoce
los 2 y en el update solo uno.

Luis

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4577 (20091105) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4577 (20091105) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una pregunta AnteriorRespuesta Tengo una respuesta
Search Busqueda sugerida