小编lrk*_*kwz的帖子

引用的表中没有索引,其中引用的列显示为第一列

我有两个现有的 mysql/mariadb 表,例如:

CREATE TABLE `ice_product` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `long_description` text DEFAULT NULL,
  `long_summary_descr` text DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `quality` varchar(255) DEFAULT NULL,
  `release_date` date DEFAULT NULL,
  `update_date` date DEFAULT NULL,
  `short_description` text DEFAULT NULL,
  `short_summary_descr` text DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `category_id` bigint(20) DEFAULT NULL,
  `supplier_id` bigint(20) DEFAULT NULL,
  `updated` bit(1) NOT NULL,
  `product_family_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_ice_product_cat` (`category_id`),
  KEY `idx_ice_product_supp` (`supplier_id`),
  KEY `idx_ice_product_updated` (`updated`),
  CONSTRAINT `fk_icecat_product_cat_id` FOREIGN KEY …
Run Code Online (Sandbox Code Playgroud)

mysql mariadb foreign-key ddl

7
推荐指数
1
解决办法
1504
查看次数

标签 统计

ddl ×1

foreign-key ×1

mariadb ×1

mysql ×1