× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Folks:

The official language of all midrange.com lists is ENGLISH.

david

At 07:21 AM 12/28/2001, you wrote:
>El problema surge porque trata de poner NULL en los registros sin pareja.
>
>Se puede resolver agregando una condición despues del segundo select,  que
>solo actualice los registros de tabla1 que si estan en tabla2
>
>... /CAMPO1) where tabla1/campo1 in (select campo2 from tabla2)
>
>foros_informat@panalon.com escribió:
>
> > Necesito actualizar varios campos de importes de una tabla, una solución
> > seria por SQL
> > con una sentencia tal como :
> >        UPDATE librería/tabla1 SET
> >             (Importe1, Importe2, Importe3) = (SELECT IMP1, IMP2, IMP3 FROM
> > LIBRERÍA/TABLA2
> > WHERE TABLA2/CAMPO2 = TABLA1/CAMPO1 )
> >  esto funcionaria bien si todo CAMPO1 estuviera en tabla2/campo2, pero mi
> > caso no es ese
> > y me da error la sentencia.
> > ¿COMO PODRIA SOLUCIONARLO?




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.