
26/10/2007, 07:36
|
 | | | Fecha de Ingreso: febrero-2002 Ubicación: NorthSpain
Mensajes: 609
Antigüedad: 23 años 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 |