Skip to content

Commit

Permalink
Updated MATRIX (markdown)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Oct 31, 2022
1 parent 72408c2 commit c6d7bb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MATRIX.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Keyword `MATRIX`

result modifier for a `SELECT`
Result modifier for a `SELECT`


Syntax:
Suggested syntax:
```sql
MATRIX OF SELECT ...
```
Expand All @@ -14,10 +14,10 @@ Alternative syntax:
```


Usually AlaSQL returns array of records (JavaScript objects), but you can modify SELECT statement to return a matrix (array of arrays) of values from the recordset. Row order is as requested in the select.
Return data as an array of arrays (one array per row) instead of the default array of javascript objects. Row order is as requested in the select.


You can set query modifier for all SELECTs:
You can set query modifier for all SELECTs via:
```js
alasql.options.modifier = 'MATRIX';
```
Expand Down

0 comments on commit c6d7bb1

Please sign in to comment.