Thank you, but it appears that the query doesn't work for me.
In the meantime I found one that works:
select
cols.column_name
from
user_cons_columns cols, user_constraints cons
where
cols.constraint_name = cons.constraint_name and
cons.table_name = 'MY_TABLE_NAME' and cons.constraint_type = 'P'
order by
cols.position;