Difference between revisions of "Select"

From wikieduonline
Jump to navigation Jump to search
Line 23: Line 23:
 
* [[MongoDB]]: <code>db.YOUR_COLLETION_NAME.[[find]] ()</code>
 
* [[MongoDB]]: <code>db.YOUR_COLLETION_NAME.[[find]] ()</code>
 
* <code>[[select count]]</code>
 
* <code>[[select count]]</code>
 +
* <code>[[select distinct]]</code>
 
* <code>[[GRANT SELECT]]</code>
 
* <code>[[GRANT SELECT]]</code>
* <code>[[select distinct]]</code>
 
 
* <code>[[ERROR: permission denied for relation]] your_table</code>
 
* <code>[[ERROR: permission denied for relation]] your_table</code>
  

Revision as of 13:47, 8 November 2022

PostgreSQL select:

  • select * from your_table_name;
  • select * from your_db.your_table_name;
SELECT * FROM your_table_name;
ERROR: permission denied for table your_table_name
SELECT version();
SELECT current user;


  • jq '.[] | select(.color=="blue")' your_json_file.json


Related terms

See also

Advertising: