From 17ff8b9eed6ad9f76f7ac11cfb7d97d2cfcf76ca Mon Sep 17 00:00:00 2001 From: Amber Moe <42762957+Amber1990Zhang@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:31:23 +0800 Subject: [PATCH] delete foreign key --- python/mysql-connector-python/example.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/mysql-connector-python/example.py b/python/mysql-connector-python/example.py index b8e9d5a..1e290c7 100644 --- a/python/mysql-connector-python/example.py +++ b/python/mysql-connector-python/example.py @@ -42,8 +42,6 @@ FileKeywords TEXT, FileContent MEDIUMTEXT, FilePurpose VARCHAR(255), - FOREIGN KEY (ProductID) REFERENCES Products(ProductID) - ON DELETE CASCADE ON UPDATE CASCADE ); """ # 执行创建表的 SQL 语句