You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-17 09:41:06 +03:00
100 lines
1.4 KiB
Plaintext
100 lines
1.4 KiB
Plaintext
--------------
|
|
drop table if exists trow
|
|
--------------
|
|
|
|
Query OK, 0 rows affected, 1 warning
|
|
|
|
--------------
|
|
create table trow(col1 int, col2 int) engine=infinidb
|
|
--------------
|
|
|
|
Query OK, 0 rows affected
|
|
|
|
--------------
|
|
insert into trow values(1,2),(3,4)
|
|
--------------
|
|
|
|
Query OK, 2 rows affected
|
|
Records: 2 Duplicates: 0 Warnings: 0
|
|
|
|
--------------
|
|
select * from trow
|
|
--------------
|
|
|
|
col1 col2
|
|
1 2
|
|
3 4
|
|
2 rows in set
|
|
|
|
--------------
|
|
update trow set col1 = 10
|
|
--------------
|
|
|
|
Query OK, 2 rows affected
|
|
Rows matched: 0 Changed: 0 Warnings: 0
|
|
|
|
--------------
|
|
select * from trow
|
|
--------------
|
|
|
|
col1 col2
|
|
10 2
|
|
10 4
|
|
2 rows in set
|
|
|
|
--------------
|
|
update trow set col1 = 11 where col2=20
|
|
--------------
|
|
|
|
Query OK, 0 rows affected
|
|
Rows matched: 0 Changed: 0 Warnings: 0
|
|
|
|
--------------
|
|
update trow set col1 = 11
|
|
--------------
|
|
|
|
Query OK, 2 rows affected
|
|
Rows matched: 0 Changed: 0 Warnings: 0
|
|
|
|
--------------
|
|
update trow set col1 = 12 where col2=20
|
|
--------------
|
|
|
|
Query OK, 0 rows affected
|
|
Rows matched: 0 Changed: 0 Warnings: 0
|
|
|
|
--------------
|
|
select * from trow
|
|
--------------
|
|
|
|
col1 col2
|
|
11 2
|
|
11 4
|
|
2 rows in set
|
|
|
|
--------------
|
|
delete from trow
|
|
--------------
|
|
|
|
Query OK, 2 rows affected
|
|
|
|
--------------
|
|
delete from trow where col2=20
|
|
--------------
|
|
|
|
Query OK, 0 rows affected
|
|
|
|
--------------
|
|
select * from trow
|
|
--------------
|
|
|
|
Empty set
|
|
|
|
--------------
|
|
drop table trow
|
|
--------------
|
|
|
|
Query OK, 0 rows affected
|
|
|
|
Bye
|