示例如下:
INSERT INTO product_modular_info( `product_id`, `business_title`, `delete_bit`, `item_table_name`) select 2, '教育培训模板', b'0', 'education_sheet_data'
WHERE NOT EXISTS (SELECT * FROM product_modular_info WHERE business_title='教育培训模板');
示例如下:
INSERT INTO product_modular_info( `product_id`, `business_title`, `delete_bit`, `item_table_name`) select 2, '教育培训模板', b'0', 'education_sheet_data'
WHERE NOT EXISTS (SELECT * FROM product_modular_info WHERE business_title='教育培训模板');