Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2007, 07:36
Avatar de Kelpie
Kelpie
 
Fecha de Ingreso: febrero-2002
Ubicación: NorthSpain
Mensajes: 609
Antigüedad: 22 años, 3 meses
Puntos: 8
Re: UPDATE complejo con SQL

¿No te vale con algo así?:

UPDATE tabla SET movil=tfno, tfno="" WHERE tfno LIKE "6%";
y luego
UPDATE tabla SET movil="" WHERE tfno NOT LIKE "6%";

Sustituyendo el '%' por el caracter comodín que corresponda en tu sistema
__________________
Kelpie