我有两个现有的 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)