-
Notifications
You must be signed in to change notification settings - Fork 664
Update
Mathias Rangel Wulff edited this page May 31, 2016
·
10 revisions
Syntax:
UPDATE table SET prop1 = value1, ... WHERE condition
For example:
alasql("UPDATE events SET synchronized = ? WHERE name = ?", [true, event.name]);
alasql('UPDATE cities SET population = population * 1.5 WHERE name LIKE "A%"');
alasql('UPDATE city SET population = LEN(name) * 1000000 WHERE name LIKE "M%"');
An UPDATE
statement will return the amount of rows updated by the statment.
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo