· 8 years ago · Jan 25, 2018, 11:02 PM
1create table balances {
2 address bigint NOT NULL PRIMARY KEY,
3 balance double NOT NULL
4}
5
6begin transaction;
7subtract 15 from balance where address=5
8if address 12 exists
9 add 15 to address 12
10else
11 insert balance=15, address=12
12end transaction