I have a question that I have not yet been able to solve.
It turns out that I want to select the fields in a table. The problem is that these fields are not fixed but are stored in another table 'Table1'
SELECT Campos FROM Tabla1
Campos
------
Col1
Col2
Col3
From these registers I want to form a string that allows me to select the fields obtained from the other table.
Like this:
SELECT Col, Col2, Col3 FROM Cuentas