Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
30a18eed
Commit
30a18eed
authored
Jan 27, 2019
by
Vicențiu Ciorbaru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test
parent
f757e3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
mysql-test/main/stats.test
mysql-test/main/stats.test
+21
-0
No files found.
mysql-test/main/stats.test
0 → 100644
View file @
30a18eed
# create table t1 (a int PRIMARY KEY, b int);
# insert into t1 VALUES (1, 10);
# insert into t1 VALUES (2, 20);
# ANALYZE TABLE t1 persistent for ALL;
create
table
ten
(
a
int
);
insert
into
ten
(
a
)
values
(
1
),
(
2
),
(
3
),
(
4
),
(
5
),
(
6
),
(
7
),
(
8
),
(
9
),
(
10
);
create
table
hundred
(
a
int
);
insert
into
hundred
select
t
.
a
from
ten
t
,
ten
t2
,
ten
t3
;
select
(
count
(
*
))
from
hundred
;
create
table
t2
(
a
int
,
b
int
,
PRIMARY
KEY
(
a
,
b
));
insert
into
t2
(
a
,
b
)
select
row_number
()
over
(),
row_number
()
over
()
*
10
from
hundred
;
ANALYZE
TABLE
t2
persistent
for
ALL
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment