BUSCAR PARECIDOS EN DOS CAMPOS
Posted by:
jarod mac
Date: November 25, 2016 11:01AM
Buenas me gustaría hacer una búsqueda de parecidos en dos campos por ejemplo tengo estas dos tablas
colores_basicos
id_color_basico color_basico
1 AMARILLO
2 AZUL
3 ROJO
colores_completos
id_color color_completo id_color basico
1 AMARILLO CROMO
2 AMARILLO LIMON
3 AMARILLO MAIZ
4 AZUL PETROLEO
5 AZUL MAR
6 AZUL METALIZADO
7 ROJO ESCARLATA
8 ROJO FERRARI
9 ROJO DIABLO
Necesito primero buscar algo así como
SELECT * FROM colores_basicos a, colores_completos b WHERE b.color_completo like %a.color_basico%
y luego actualizar id_color basico en la tabla colores completos alguien me puede ayudar???
Subject
Views
Written By
Posted
BUSCAR PARECIDOS EN DOS CAMPOS
1355
November 25, 2016 11:01AM
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.