I would like to insert data into an Oracle database, but the column name where I want to insert isn't known in the first step, it depends on the user's choice.
For example:
colonne varchar(12) :=null;
...
case
WHEN MOIS1 = 1 THEN
colonne :='col1';
WHEN MOIS1 = 2 THEN
colonne :='col2';
WHEN MOIS1 = 3 THEN
colonne :='col3';
...
insert into Mytable ( user_id, name, colonne, ...)
and it depend to the user colonne can be col1, col2 or col3, is it possible to do that?