forked from codeschool/sqlite-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic-update.json
More file actions
90 lines (90 loc) · 2.07 KB
/
basic-update.json
File metadata and controls
90 lines (90 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"type": "statement",
"variant": "list",
"statement": [
{
"type": "statement",
"variant": "update",
"into": {
"type": "identifier",
"variant": "table",
"name": "bees"
},
"set": [
{
"type": "assignment",
"target": {
"type": "identifier",
"variant": "column",
"name": "name"
},
"value": {
"type": "literal",
"variant": "text",
"value": "drone"
}
},
{
"type": "assignment",
"target": {
"type": "identifier",
"variant": "column",
"name": "wings"
},
"value": {
"type": "literal",
"variant": "decimal",
"value": "2"
}
}
],
"where": [
{
"type": "expression",
"format": "binary",
"variant": "operation",
"operation": "not in",
"right": {
"type": "statement",
"variant": "select",
"result": [
{
"type": "identifier",
"variant": "column",
"name": "name"
}
],
"from": {
"type": "identifier",
"variant": "table",
"name": "bee_names"
},
"where": [
{
"type": "expression",
"format": "binary",
"variant": "operation",
"operation": "<",
"left": {
"type": "identifier",
"variant": "column",
"name": "size"
},
"right": {
"type": "literal",
"variant": "decimal",
"value": "3.14"
}
}
]
},
"left": {
"type": "identifier",
"variant": "column",
"name": "name"
}
}
]
}
]
}