Skip to content

Commit

Permalink
Test reader information management's sql
Browse files Browse the repository at this point in the history
  • Loading branch information
smileexpression committed Dec 9, 2023
1 parent 52bf50b commit e510c89
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion lab15-library-management-system/Test/test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,48 @@
INSERT INTO
reader_category
VALUES
(NULL, 'test', 10, 10);
(NULL, 'test', 10, 10);

SELECT
Rid,
PASSWORD,
reader_category.name AS category,
reader_information.name,
gender,
number,
registration,
valid,
currently,
cumulative,
loss,
violations,
remark
FROM
reader_information,
reader_category
WHERE
reader_information.`Cid` = reader_category.`Cid`;

INSERT INTO
reader_information
VALUES
(
5,
'123456',
2,
'test',
'male',
'12345678901',
'2021-01-01',
'NULL',
0,
0,
FALSE,
0,
NULL
);

SELECT
*
FROM
reader_category

0 comments on commit e510c89

Please sign in to comment.