外键约束

This commit is contained in:
禾几海
2020-08-04 22:01:02 +08:00
parent d50cd93e55
commit c6a97e4c5b
2 changed files with 5 additions and 3 deletions

View File

@@ -139,8 +139,8 @@ VALUES (1, 3, 7),
INSERT INTO `comment` (`co_id`, `co_page_path`, `co_content`, `co_date`, `co_status`, `co_pid`, `co_from_author_id`,
`co_to_author_id`)
VALUES (1, '/a', 'test comment', '2020-05-22 23:57:17', 0, -1, 1, -1),
(2, '/a', 'test comment', '2020-05-22 23:57:31', 0, -1, 1, 1);
VALUES (1, '/a', 'test comment', '2020-05-22 23:57:17', 0, -1, 1, null),
(2, '/a', 'test comment', '2020-05-22 23:57:31', 0, -1, 1, null);