Hi everybody
I'm wrinting a stored procedure in order to use this last one in a migration script.
During the writing i've notice that i have to use a variable in a cursor ..
For example
I fetch the variable var_name which give the result of one request in this i have for example ashley, kate etc ..
I wanna use ashlet, kate .. in order to selecte the specifies fields in another table
So i want to make SELECT ashley,kate FROM table; in orde rto see what is stocked in the column ashley and in the column kate but instead of having the informations of theses columns when i make SELECT var_name FROM table i've ashley, kate like i've write SELECT 'ashley', 'kate' FROM table or 1 if i write SELECT 1 FROM table
The string stocked in the variable isn't interpreted as a column names
>So it's possible tu use a variable to select fields ???
> Thanks for your help