久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='aGtg9'><style id='aGtg9'><dir id='aGtg9'><q id='aGtg9'></q></dir></style></legend>

    <small id='aGtg9'></small><noframes id='aGtg9'>

    <tfoot id='aGtg9'></tfoot>

        <bdo id='aGtg9'></bdo><ul id='aGtg9'></ul>

      1. <i id='aGtg9'><tr id='aGtg9'><dt id='aGtg9'><q id='aGtg9'><span id='aGtg9'><b id='aGtg9'><form id='aGtg9'><ins id='aGtg9'></ins><ul id='aGtg9'></ul><sub id='aGtg9'></sub></form><legend id='aGtg9'></legend><bdo id='aGtg9'><pre id='aGtg9'><center id='aGtg9'></center></pre></bdo></b><th id='aGtg9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='aGtg9'><tfoot id='aGtg9'></tfoot><dl id='aGtg9'><fieldset id='aGtg9'></fieldset></dl></div>
      2. MySQL 錯(cuò)誤 1215:無法添加外鍵約束

        MySQL Error 1215: Cannot add foreign key constraint(MySQL 錯(cuò)誤 1215:無法添加外鍵約束)

            <tbody id='nTS4C'></tbody>
          <legend id='nTS4C'><style id='nTS4C'><dir id='nTS4C'><q id='nTS4C'></q></dir></style></legend>

          <small id='nTS4C'></small><noframes id='nTS4C'>

        1. <i id='nTS4C'><tr id='nTS4C'><dt id='nTS4C'><q id='nTS4C'><span id='nTS4C'><b id='nTS4C'><form id='nTS4C'><ins id='nTS4C'></ins><ul id='nTS4C'></ul><sub id='nTS4C'></sub></form><legend id='nTS4C'></legend><bdo id='nTS4C'><pre id='nTS4C'><center id='nTS4C'></center></pre></bdo></b><th id='nTS4C'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='nTS4C'><tfoot id='nTS4C'></tfoot><dl id='nTS4C'><fieldset id='nTS4C'></fieldset></dl></div>

            <bdo id='nTS4C'></bdo><ul id='nTS4C'></ul>

                <tfoot id='nTS4C'></tfoot>

                • 本文介紹了MySQL 錯(cuò)誤 1215:無法添加外鍵約束的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試將我的新架構(gòu)轉(zhuǎn)發(fā)到我的數(shù)據(jù)庫服務(wù)器上,但我不知道為什么我會(huì)收到這個(gè)錯(cuò)誤.

                  I am trying to forward engineer my new schema onto my database server, but I can't figure out why I am getting this error.

                  我試圖在這里搜索答案,但我發(fā)現(xiàn)的所有內(nèi)容都說要么將數(shù)據(jù)庫引擎設(shè)置為 InnoDB,要么確保我嘗試用作外鍵的鍵是主鍵他們自己的桌子.如果我沒記錯(cuò)的話,這兩件事我都做過.我還能做什么?

                  I've tried to search for the answer here, but everything I've found has said to either set the database engine to InnoDB or to make sure the keys I'm trying to use as a foreign key are primary keys in their own tables. I have done both of these things, if I'm not mistaken. What else can I do?

                  Executing SQL script in server
                  
                  ERROR: Error 1215: Cannot add foreign key constraint
                  
                  -- -----------------------------------------------------
                  -- Table `Alternative_Pathways`.`Clients_has_Staff`
                  -- -----------------------------------------------------
                  

                  CREATE  TABLE IF NOT EXISTS `Alternative_Pathways`.`Clients_has_Staff` (
                    `Clients_Case_Number` INT NOT NULL ,
                    `Staff_Emp_ID` INT NOT NULL ,
                    PRIMARY KEY (`Clients_Case_Number`, `Staff_Emp_ID`) ,
                    INDEX `fk_Clients_has_Staff_Staff1_idx` (`Staff_Emp_ID` ASC) ,
                    INDEX `fk_Clients_has_Staff_Clients_idx` (`Clients_Case_Number` ASC) ,
                    CONSTRAINT `fk_Clients_has_Staff_Clients`
                      FOREIGN KEY (`Clients_Case_Number` )
                      REFERENCES `Alternative_Pathways`.`Clients` (`Case_Number` )
                      ON DELETE NO ACTION
                      ON UPDATE NO ACTION,
                    CONSTRAINT `fk_Clients_has_Staff_Staff1`
                      FOREIGN KEY (`Staff_Emp_ID` )
                      REFERENCES `Alternative_Pathways`.`Staff` (`Emp_ID` )
                      ON DELETE NO ACTION
                      ON UPDATE NO ACTION)
                  ENGINE = InnoDB
                  

                  SQL 腳本執(zhí)行完成:語句:7 條成功,1 條失敗

                  SQL script execution finished: statements: 7 succeeded, 1 failed

                  這是父表的 SQL.

                  CREATE  TABLE IF NOT EXISTS `Alternative_Pathways`.`Clients` (
                    `Case_Number` INT NOT NULL ,
                    `First_Name` CHAR(10) NULL ,
                    `Middle_Name` CHAR(10) NULL ,
                    `Last_Name` CHAR(10) NULL ,
                    `Address` CHAR(50) NULL ,
                    `Phone_Number` INT(10) NULL ,
                    PRIMARY KEY (`Case_Number`) )
                  ENGINE = InnoDB
                  
                  CREATE  TABLE IF NOT EXISTS `Alternative_Pathways`.`Staff` (
                    `Emp_ID` INT NOT NULL ,
                    `First_Name` CHAR(10) NULL ,
                    `Middle_Name` CHAR(10) NULL ,
                    `Last_Name` CHAR(10) NULL ,
                    PRIMARY KEY (`Emp_ID`) )
                  ENGINE = InnoDB
                  

                  推薦答案

                  我猜 Clients.Case_Number 和/或 Staff.Emp_ID 并不完全相同數(shù)據(jù)類型為 Clients_has_Staff.Clients_Case_NumberClients_has_Staff.Staff_Emp_ID.

                  I'm guessing that Clients.Case_Number and/or Staff.Emp_ID are not exactly the same data type as Clients_has_Staff.Clients_Case_Number and Clients_has_Staff.Staff_Emp_ID.

                  也許父表中的列是INT UNSIGNED?

                  它們在兩個(gè)表中的數(shù)據(jù)類型必須完全相同.

                  They need to be exactly the same data type in both tables.

                  這篇關(guān)于MySQL 錯(cuò)誤 1215:無法添加外鍵約束的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數(shù)根據(jù) N 個(gè)先前值來決定接下來的 N 個(gè)行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達(dá)式的結(jié)果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數(shù)的 ignore 選項(xiàng)是忽略整個(gè)事務(wù)還是只是有問題的行?) - IT屋-程序員軟件開發(fā)技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時(shí)出錯(cuò),使用 for 循環(huán)數(shù)組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時(shí)發(fā)生錯(cuò)誤 沒有合適的驅(qū)動(dòng)程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數(shù)據(jù)庫表作為 Spark 數(shù)據(jù)幀讀取?)
                  1. <i id='mT7Ts'><tr id='mT7Ts'><dt id='mT7Ts'><q id='mT7Ts'><span id='mT7Ts'><b id='mT7Ts'><form id='mT7Ts'><ins id='mT7Ts'></ins><ul id='mT7Ts'></ul><sub id='mT7Ts'></sub></form><legend id='mT7Ts'></legend><bdo id='mT7Ts'><pre id='mT7Ts'><center id='mT7Ts'></center></pre></bdo></b><th id='mT7Ts'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mT7Ts'><tfoot id='mT7Ts'></tfoot><dl id='mT7Ts'><fieldset id='mT7Ts'></fieldset></dl></div>
                      <legend id='mT7Ts'><style id='mT7Ts'><dir id='mT7Ts'><q id='mT7Ts'></q></dir></style></legend>

                          <bdo id='mT7Ts'></bdo><ul id='mT7Ts'></ul>

                              <tbody id='mT7Ts'></tbody>
                            <tfoot id='mT7Ts'></tfoot>

                            <small id='mT7Ts'></small><noframes id='mT7Ts'>

                            主站蜘蛛池模板: 亚洲一区二区三区在线 | 久久久香蕉 | 偷拍一区二区三区 | 黄色成年人视频 | 久久精品欧美一区二区 | 国产视频a| 波多野结衣亚洲一区 | 久久久久a | 久久精品国产一区 | 日韩天堂在线 | 免费av网址在线观看 | 亚洲伊人影院 | 国产日产精品一区二区三区的介绍 | 五月婷婷丁香综合 | 亚洲高清免费视频 | 欧美黄色录像 | 久久视频在线免费观看 | 久久久久成人网 | 久久精品一区二区国产 | 亚洲激情网 | 成年人免费在线观看 | 欧美一区二区免费 | jlzzjlzz欧美大全 | 国产精品少妇 | a毛片视频| 97香蕉视频 | 日日日操 | 538在线| 国产欧美日韩一区 | 黄色一级大片 | 午夜视频网 | 久久依人| 夜夜操影院 | 日本久久久久久 | 影音先锋在线视频 | 男女视频网站 | 操综合| 欧美福利视频 | 日韩不卡在线观看 | 91精品国产一区二区三区 | 欧美大片一区二区 |