我正在通过 phpMyAdmin 运行以下查询:
**CREATE TABLE folders (
folder_id SERIAL NOT NULL,
parent_id BIGINT,
folder_name TEXT NOT NULL,
PRIMARY KEY (folder_id),
FOREIGN KEY (parent_id) REFERENCES folders(folder_id) ON DELETE CASCADE
)ENGINE=InnoDB;**
但它给出了以下错误:
#1005 - Can't create table 'filesharingnew.folders' (errno: 150)
知道我哪里错了吗?