Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-25737-2462428
DB2024-CZGZ-893
Commits
56b92b0c
Commit
56b92b0c
authored
11 months ago
by
Greener Pat
Browse files
Options
Download
Patches
Plain Diff
save 7.27 11:47
parent
8047f454
yzx_perf
dev-performance
final_perf
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
client_test/main.cpp
+1
-1
client_test/main.cpp
client_test/test2.sql
+0
-53
client_test/test2.sql
决赛性能测试SQL示例.pdf
+0
-0
决赛性能测试SQL示例.pdf
with
1 addition
and
54 deletions
+1
-54
client_test/main.cpp
+
1
−
1
View file @
56b92b0c
...
@@ -114,7 +114,7 @@ int main(int argc, char *argv[]) {
...
@@ -114,7 +114,7 @@ int main(int argc, char *argv[]) {
char
recv_buf
[
MAX_MEM_BUFFER_SIZE
];
char
recv_buf
[
MAX_MEM_BUFFER_SIZE
];
std
::
ifstream
file
(
"../test
4
.sql"
);
// 打开文件
std
::
ifstream
file
(
"../test
2
.sql"
);
// 打开文件
if
(
!
file
.
is_open
())
{
if
(
!
file
.
is_open
())
{
std
::
cerr
<<
"无法打开文件"
<<
std
::
endl
;
std
::
cerr
<<
"无法打开文件"
<<
std
::
endl
;
return
1
;
return
1
;
...
...
This diff is collapsed.
Click to expand it.
client_test/test2.sql
+
0
−
53
View file @
56b92b0c
create
table
t1
(
id
int
,
name
char
(
4
));
show
tables
;
create
table
t2
(
id
int
);
show
tables
;
drop
table
t1
;
show
tables
;
drop
table
t2
;
show
tables
;
create
table
grade
(
name
char
(
20
),
id
int
,
score
float
);
insert
into
grade
values
(
'Data Structure'
,
1
,
90
.
5
);
insert
into
grade
values
(
'Data Structure'
,
2
,
95
.
0
);
insert
into
grade
values
(
'Calculus'
,
2
,
92
.
0
);
insert
into
grade
values
(
'Calculus'
,
1
,
88
.
5
);
select
*
from
grade
;
select
score
,
name
,
id
from
grade
where
score
>
90
;
select
id
from
grade
where
name
=
'Data Structure'
;
select
name
from
grade
where
id
=
2
and
score
>
90
;
create
table
grade
(
name
char
(
20
),
id
int
,
score
float
);
insert
into
grade
values
(
'Data Structure'
,
1
,
90
.
5
);
insert
into
grade
values
(
'Data Structure'
,
2
,
95
.
0
);
insert
into
grade
values
(
'Calculus'
,
2
,
92
.
0
);
insert
into
grade
values
(
'Calculus'
,
1
,
88
.
5
);
select
*
from
grade
;
update
grade
set
score
=
90
where
name
=
'Calculus'
;
select
*
from
grade
;
update
grade
set
name
=
'Error name'
where
name
>
'A'
;
select
*
from
grade
;
update
grade
set
name
=
'Error'
,
id
=
-
1
,
score
=
0
where
name
=
'Error name'
and
score
>=
90
;
select
*
from
grade
;
create
table
grade
(
name
char
(
20
),
id
int
,
score
float
);
insert
into
grade
values
(
'Data Structure'
,
1
,
90
.
5
);
select
*
from
grade
;
delete
from
grade
where
score
>
90
;
select
*
from
grade
;
create
table
t
(
id
int
,
t_name
char
(
3
));
create
table
t
(
id
int
,
t_name
char
(
3
));
create
table
d
(
d_name
char
(
5
),
id
int
);
create
table
d
(
d_name
char
(
5
),
id
int
);
...
...
This diff is collapsed.
Click to expand it.
决赛性能测试SQL示例.pdf
0 → 100644
+
0
−
0
View file @
56b92b0c
File added
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets