Difference between revisions of "Select"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(28 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
+ | select | ||
+ | [[select count]] | ||
+ | [[select distinct]] | ||
− | jq '.[] | [[select]](.color=="blue")' your_json_file.json | + | |
− | + | [[PostgreSQL select]]: | |
+ | * <code> select * from your_table_name;</code> | ||
+ | |||
+ | * <code> select * from your_db.your_table_name;</code> | ||
+ | |||
+ | SELECT * FROM your_table_name; | ||
+ | [[ERROR: permission denied for table]] your_table_name | ||
+ | |||
+ | [[SELECT version();]] | ||
+ | [[SELECT current user;]] | ||
+ | |||
+ | * <code>[[select]] current_setting('[[block_size]]');</code> | ||
+ | |||
+ | |||
+ | * [[MySQL]]: <code>[[select user]] FROM [[mysql.user]];</code> | ||
+ | |||
+ | * <code>[[jq]] '.[] | [[select]](.color=="blue")' your_json_file.json</code> | ||
+ | |||
+ | |||
+ | |||
+ | == Related terms == | ||
+ | * [[MongoDB]]: <code>db.YOUR_COLLETION_NAME.[[find]] ()</code> | ||
+ | * <code>[[select count]]</code> | ||
+ | * <code>[[select distinct]]</code> | ||
+ | * <code>[[GRANT SELECT]]</code> | ||
+ | * <code>[[ERROR: permission denied for relation]] your_table</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{SQL}} | ||
+ | |||
+ | [[Category:Computing]] |
Revision as of 13:48, 8 November 2022
select select count select distinct
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;
select current_setting('block_size');
- MySQL:
select user FROM mysql.user;
Related terms
- MongoDB:
db.YOUR_COLLETION_NAME.find ()
select count
select distinct
GRANT SELECT
ERROR: permission denied for relation your_table
See also
- SQL, NewSQL: GraphQL (2015), SQLite,
select, insert
,select count
, Distributed SQL, TablePlus, Cache hit ratio,pg_stat_user_tables
,EXPLAIN
, Index (PostgreSQL), DDL, SQL/MED, Group by, List users, SQL Injection, SQLAlchemy,CREATE USER, CREATE ROLE, EXPLAIN, ALTER DATABASE, REVOKE, NOLOCK, NOWAIT, EXISTS
, Unique constraint
Advertising: