-
Notifications
You must be signed in to change notification settings - Fork 664
Set
Mathias Rangel Wulff edited this page Jun 12, 2015
·
7 revisions
Syntax:
SET option ON|OFF
SET option = value
SET @variable = value
SET $param = value
Set option or variable to the value.
// For LocalStorage
alasql('SET AUTOCOMMIT ON');
alasql('SET AUTOCOMMIT OFF');
/// For other AlaSQL options
alasql('SET MODIFIER = "RECORDSET"');
```
### Set local variables
You can set local variables with ```@``` prefix as well:
```sql
SET @data = @[{a:1},{a:2}];
SET $one = 10;
SET @a->b->(c+d)->(0) = 2+2;
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo