MySQL Forums
Forum List  »  Spanish

Separar lista de datos contenida en columna
Posted by: Marco Rios
Date: February 09, 2018 07:31PM

Estimados colegas:
tengo una columna la cuál contiene una lista de datos (id's) los cuáles requiere procesar.
La cuestión está en convertir de:
col = 'a,b,c...'
a:
'a','b','c',...

para aplicarlo en una consulta como el siguiente ejemplo:
SELECT 
    *
FROM 
    table1
WHERE
    col1 IN ('a','b','c',...)

Thanks in advance for your valuable help.

Acer LENOVO G450
CPU: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz × 2
RAM: 4GB
Graphics: Intel GM45
OS: UBUNTU 18.04.4 LTS 64bits
GNOME 3.28.2
--
Best regards
Marco
Mexico City, Mexico

Options: Reply• Quote


Subject
Views
Written By
Posted
Separar lista de datos contenida en columna
2393
February 09, 2018 07:31PM


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.