Disappearing Foreign Keys in phpMyAdmin

后端 未结 4 663
猫巷女王i
猫巷女王i 2021-02-09 21:03

I am creating a new table inside mysql and I am trying to add a foreign key constraint to one of the fields.

CREATE TABLE `onlineorder` (
  `receiptid` varchar(10) NO         


        
4条回答
  •  再見小時候
    2021-02-09 21:50

    Also, PHPMyAdmin removes extracts any CONSTRAINTS until after all the tables have been created and the data has been inserted. If you use as PHPMySql to dump the table for you, you'll find at the end of the file an UPDATE table section with all your ADD CONSTRAINT entries.

提交回复
热议问题