Need to fetch all column names of particular table having specific permission. I am trying this:
SELECT column_name
FROM information_schema.columns
WHERE table_name = 'persons'
I want column names having viewer permissions in person table. Above SQL listing all field name. Need to add one more condition here that will list field name which is restricted to perticular group