Disappearing Foreign Keys in phpMyAdmin

后端 未结 4 665
猫巷女王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:49

    There are two type of constraints when you managing your tables with phpmyadmin:

    • internal: when you set constraints with phpmyadmin designer for example the constraints stored as internal,that will not be included in export.
    • innoDB: these constraints included in export check out linked video about it

    [Video: Setting up a foreign key constraint][1]

提交回复
热议问题