Bug #101270 | Error 1064: create table with foreign key | ||
---|---|---|---|
Submitted: | 22 Oct 2020 4:39 | Modified: | 28 Oct 2020 11:00 |
Reporter: | Dung Nguyen | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Workbench | Severity: | S7 (Test Cases) |
Version: | 8.0.21 | OS: | Windows (Microsoft Windows 10 Pro) |
Assigned to: | CPU Architecture: | Any | |
Tags: | WBBugReporter |
[22 Oct 2020 4:39]
Dung Nguyen
[28 Oct 2020 11:00]
MySQL Verification Team
Hello Dung Nguyen, Thank you for the bug report. Imho this is duplicate of Bug #95804, please see Bug #95804. Regards, Ashwini Patil
[5 Nov 2020 18:23]
Brian Plunkett
Ashwini Patil, please note that this is not the same type of error. MySQL does not support MariaDB databases (i.e. different database architecture & syntax from MySQL). The ticket should be closed.
[6 Apr 2023 0:45]
Diego de Paula Dhiego
CREATE TABLE FUNCIONARIO28 ( COD NUMBER(05) NULL, NOME VARCHAR(50) NULL, FUNCAO VARCHAR(40) NULL, COD SUP NUMBER(05), ADMISSAO TIMESTAMP DEFAULT LOCALTIMESTAMP, CONSTRAINT FUNC28_COD_FUN_PK PRIMARY KEY (COD_FUN), CONSTRAINT FUNC28_COD_FUN_FK FOREIGN KEY (COD_SUP_FUN) REFERENCES FUNCIONARIO28 (COD_FUN));
[6 Apr 2023 0:48]
Diego de Paula Dhiego
CREATE TABLE FUNCIONARIO28 ( COD_FUN NUMBER(05) NOT NULL, NOME_FUN VARCHAR(50) NOT NULL, FUNCAO_FUN VARCHAR(40) NOT NULL, COD_SUP_FUN NUMBER(05), ADMISSAO TIMESTAMP DEFAULT LOCALTIMESTAMP, CONSTRAINT FUNC28_COD_FUN_PK PRIMARY KEY (COD_FUN), CONSTRAINT FUNC28_COD_FUN_FK FOREIGN KEY (COD_SUP_FUN) REFERENCES FUNCIONARIO28 (COD_FUN));