blob: ecf0873c5e84ec3a5e865409eba809227d2b952c [file] [log] [blame] [view]
# SELECT
## Basic syntax
Basic syntax (parts between `[]` are optional):
```sql
SELECT select_expr [, select_expr] ...
FROM table_name
[WHERE where_condition]
[GROUP BY {col_name | expr} ... ]
[ORDER BY {col_name | expr}
[ASC | DESC]
[LIMIT [offset,] row_count ]
```
`Select` syntax in HoraeDB is similar to mysql, here is an example:
```sql
SELECT * FROM `demo` WHERE time_stamp > '2022-10-11 00:00:00' AND time_stamp < '2022-10-12 00:00:00' LIMIT 10
```