Difference between revisions of "Select"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
  
[[PostgreSQL select]]:
+
[[PostgreSQL select|PostgreSQL]]:
 
* <code> select * from your_table_name;</code>
 
* <code> select * from your_table_name;</code>
 +
* <code> select * from your_db.your_table_name;</code>
 +
* <code>[[SELECT * FROM pg_stat_activity;]]</code>
 +
* <code>[[SELECT version();]]</code>
 +
* <code>[[SELECT current user;]]</code>
 +
* <code>[[SELECT current database();]]</code>
  
* <code> select * from your_db.your_table_name;</code>
 
  
 
  SELECT * FROM your_table_name;
 
  SELECT * FROM your_table_name;
 
  [[ERROR: permission denied for table]] your_table_name
 
  [[ERROR: permission denied for table]] your_table_name
  
[[SELECT version();]]
+
 
[[SELECT current user;]]
 
  
 
* <code>[[select]] current_setting('[[block_size]]');</code>
 
* <code>[[select]] current_setting('[[block_size]]');</code>
Line 30: Line 33:
 
* <code>[[select distinct]]</code>
 
* <code>[[select distinct]]</code>
 
* <code>[[GRANT SELECT]]</code>
 
* <code>[[GRANT SELECT]]</code>
 +
**<code>[[GRANT SELECT ON ALL TABLES]]</code>
 
* <code>[[ERROR: permission denied for relation]] your_table</code>
 
* <code>[[ERROR: permission denied for relation]] your_table</code>
 +
* [[SELECT can cause synchronous writes on the disk]]
  
 
== See also ==
 
== See also ==
 +
* {{SELECT}}
 
* {{SQL}}
 
* {{SQL}}
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Latest revision as of 13:21, 5 May 2023

Advertising: