МБ
Size: a a a
МБ
MA
MA
KY
МБ
MA
МБ
МБ
MI
tarantool> box.execute('create table t(i int primary key, a int);')
---
- row_count: 1
...
tarantool> box.execute('insert into t values (1, NULL), (2, 2), (3,NULL);')
---
- row_count: 3
...
tarantool> box.execute('select * from t where a is NULL;')
---
- metadata:
- name: I
type: integer
- name: A
type: integer
rows:
- [1, null]
- [3, null]
...MI
МБ
МБ
МБ
МБ
MI
format = {{'i', 'integer'}}
s = box.schema.space.create('A', {format = format})
_ = s:create_index('i')
box.execute('insert into a values (1), (2);')
format = {{'i', 'integer'}, {'a', 'integer', is_nullable = true}}
s:format(format)
box.execute('select * from a where "a" is NULL;')
box.execute('update a set "a" = NULL;')
box.execute('select * from a where "a" is NULL;')tarantool> box.execute('select * from a where "a" is NULL;')
---
- metadata:
- name: i
type: integer
- name: a
type: integer
rows:
- [1, null]
- [2, null]
...MI
МБ
MI
format = {{'i', 'integer'}}
s = box.schema.space.create('A', {format = format})
_ = s:create_index('i')
box.execute('insert into a values (1), (2);')
format = {{'i', 'integer'}, {'a', 'integer', is_nullable = true}, {'b', 'integer', is_nullable = true}}
s:format(format)
box.execute('update a set "b" = NULL;')tarantool> box.execute('update a set "b" = NULL;')
---
- null
- Field 3 was not found in the tuple
...tarantool> box.execute('update a set "b" = 1 WHERE "b" = NULL;')
---
- row_count: 0
...
tarantool> box.execute('select * from a where "b" is NULL;')
---
- metadata:
- name: i
type: integer
- name: a
type: integer
- name: b
type: integer
rows:
- [1, null, null]
- [2, null, null]
...tarantool> box.execute('update a set "a" = 1;')
---
- row_count: 2
...
tarantool> box.execute('update a set "b" = 1;')
---
- row_count: 2
...MI
МБ