vault backup: 2024-01-01 23:07:40

This commit is contained in:
2024-01-01 23:07:40 -05:00
parent 8cdfcdc676
commit f19b4943cd

View File

@@ -7,3 +7,28 @@
## Examples
### Basic `SELECT` examples
```sql
-- Select all fields from a table
SELECT * FROM person;
-- Select specific fields from a table
SELECT name, address, email FROM person;
-- Select all fields from a specific record
SELECT * FROM person:tobie;
-- Select specific fields from a specific record
SELECT name, address, email FROM person:tobie;
-- Alias/rename fields
SELECT name AS user_name, address FROM person;
-- Select just a single record
-- Using the ONLY keyword, just an object for the record in question will be returned.
-- This, instead of an array with a single object.
SELECT * FROM ONLY person:john;
```
###