PostgreSQL - Roles and SecurityWhich SQL command is used to remove column-level SELECT permission from a user in PostgreSQL?AREMOVE SELECT ON column_name FROM user_name;BREVOKE SELECT (column_name) ON table_name FROM user_name;CDENY SELECT ON table_name TO user_name;DDROP PERMISSION SELECT ON table_name FOR user_name;Check Answer
Step-by-Step SolutionSolution:Step 1: Recall the syntax for revoking permissions in PostgreSQLPostgreSQL uses REVOKE to remove permissions.Step 2: Identify correct syntax for column-level revokeREVOKE SELECT (column_name) ON table_name FROM user_name; is the correct form.Final Answer:REVOKE SELECT (column_name) ON table_name FROM user_name; -> Option BQuick Check:Revoke column permission = REVOKE SELECT (col) ON table [OK]Quick Trick: Use REVOKE with column list in parentheses for column permissions [OK]Common Mistakes:Using DENY which is not valid in PostgreSQLTrying REMOVE or DROP PERMISSION commands which don't existOmitting parentheses around column name
Master "Roles and Security" in PostgreSQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PostgreSQL Quizzes Advanced PL/pgSQL - Performing operations on cursors - Quiz 8hard Indexing Strategies - GiST index for geometric and text - Quiz 2easy Performance Tuning - ANALYZE for statistics collection - Quiz 8hard Performance Tuning - EXPLAIN output reading - Quiz 4medium Table Partitioning - Sub-partitioning - Quiz 11easy Transactions and Concurrency - Serializable isolation - Quiz 15hard Transactions and Concurrency - Deadlock detection and prevention - Quiz 5medium Triggers in PostgreSQL - BEFORE trigger behavior - Quiz 11easy Triggers in PostgreSQL - Why triggers are needed - Quiz 1easy Triggers in PostgreSQL - AFTER trigger behavior - Quiz 4medium