The GET command is a variant of SELECT. Its syntax and behavior mimic that of SELECT with the exception of the following differences:
Example 43.13. The GET command
table 'table_1':
a b c
1 1 1
1 1 2
1 2 3
2 1 1
2 1 2
2 2 3
sql table_2:
GET *, a+b AS d, d*c, d*c AS e, -1 AS e FROM table_1
print table_2
Output:
a | b | c | d | d*c | e | +-+---+---+---+-----+----+-- 1 | 1 | 1 | 2 | 2 | -1 | 1 | 1 | 2 | 2 | 4 | -1 | 1 | 2 | 3 | 3 | 9 | -1 | 2 | 1 | 1 | 3 | 3 | -1 | 2 | 1 | 2 | 3 | 6 | -1 | 2 | 2 | 3 | 4 | 12 | -1 |