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
43a5de3a
Commit
43a5de3a
authored
Oct 13, 2000
by
mwagner@evoq.home.mwagner.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sel000003.test XLST generated.
sel000002.test XLST generated. sel000001.test XLST generated.
parent
36913818
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
17 deletions
+50
-17
mysql-test/t/3.23/sel000001.test
mysql-test/t/3.23/sel000001.test
+17
-5
mysql-test/t/3.23/sel000002.test
mysql-test/t/3.23/sel000002.test
+16
-5
mysql-test/t/3.23/sel000003.test
mysql-test/t/3.23/sel000003.test
+17
-7
No files found.
mysql-test/t/3.23/sel000001.test
View file @
43a5de3a
use
test
;
drop
table
if
exists
t
;
create
table
t
(
s
char
(
20
)
primary
key
,
id
int
);
insert
into
t
values
(
'cat'
,
1
),(
'mouse'
,
3
),(
'dog'
,
2
),(
'snake'
,
77
);
@
r
/
3.23
/
sel000001
.
result
select
s
,
id
from
t
where
s
=
'mouse'
;
# sel000001
#
# Versions
# --------
# 3.22
# 3.23
#
# Description
# -----------
# This test is just a simple select.
# Testing WHERE clause.
#
DROP
TABLE
IF
EXISTS
t
;
CREATE
TABLE
t
(
s
CHAR
(
20
)
PRIMARY
KEY
,
id
INT
);
INSERT
INTO
t
VALUES
(
'cat'
,
1
),
(
'mouse'
,
3
),
(
'dog'
,
2
),
(
'snake'
,
77
);
@
r
/
3.23
/
sel000001
.
result
SELECT
s
,
id
FROM
t
WHERE
s
=
'mouse'
;
mysql-test/t/3.23/sel000002.test
View file @
43a5de3a
use
test
;
drop
table
if
exists
t
;
create
table
t
(
n
int
);
insert
into
t
values
(
1
),(
2
),(
3
);
@
r
/
3.23
/
sel000002
.
result
select
*
from
t
;
# sel000002
#
# Versions
# --------
# 3.22
# 3.23
#
# Description
# -----------
# This test is just a simple select.
#
DROP
TABLE
IF
EXISTS
t
;
CREATE
TABLE
t
(
n
INT
);
INSERT
INTO
t
VALUES
(
1
),
(
2
),
(
3
);
@
r
/
3.23
/
sel000002
.
result
SELECT
*
FROM
t
;
mysql-test/t/3.23/sel000003.test
View file @
43a5de3a
use
test
;
drop
table
if
exists
t
;
create
table
t
(
name
char
(
20
)
not
null
primary
key
,
score
smallint
not
null
,
key
(
score
));
insert
into
t
values
(
'Sasha'
,
20
),
(
'Matt'
,
20
),
(
'Monty'
,
10
),
(
'David'
,
10
),
(
'Tim'
,
10
),(
'Jeremy'
,
10
);
@
r
/
3.23
/
sel000003
.
result
select
count
(
*
)
as
n
,
score
from
t
group
by
score
;
\ No newline at end of file
# sel000003
#
# Versions
# --------
# 3.22
# 3.23
#
# Description
# -----------
# This test is just a simple select.
# Testing count() function and GROUP BY clause.
#
DROP
TABLE
IF
EXISTS
t
;
CREATE
TABLE
t
(
name
CHAR
(
20
)
NOT
NULL
PRIMARY
KEY
,
score
SMALLINT
NOT
NULL
,
KEY
(
score
));
INSERT
INTO
t
VALUES
(
'Sasha'
,
20
),
(
'Matt'
,
20
),
(
'Monty'
,
10
),
(
'David'
,
10
),
(
'Tim'
,
10
),
(
'Jeremy'
,
10
);
@
r
/
3.23
/
sel000003
.
result
SELECT
COUNT
(
*
)
as
n
,
score
FROM
t
GROUP
BY
score
;
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