aeo13
2022-05-06 14:03:11 +08:00
尝试使用最粗暴的方法,目前数据量 1W 左右,大概 1 秒。后面数据上去应该就会顶不住了。
SELECT
*
FROM
(
SELECT
*
FROM
(
SELECT
*
FROM
`additive`
WHERE
normal LIKE '%生产%'
OR fca_no LIKE '%生产%'
OR cas LIKE '%生产%'
OR chemical_name LIKE '%生产%'
OR use_range LIKE '%生产%'
OR `limit` LIKE '%1%'
OR sml LIKE '%生产%'
OR other LIKE '%生产%'
OR other_name LIKE '%生产%'
) a
WHERE
normal LIKE '%塑料%'
OR fca_no LIKE '%塑料%'
OR cas LIKE '%塑料%'
OR chemical_name LIKE '%塑料%'
OR use_range LIKE '%塑料%'
OR `limit` LIKE '%塑料%'
OR sml LIKE '%塑料%'
OR other LIKE '%塑料%'
OR other_name LIKE '%塑料%'
) b
WHERE
normal LIKE '%锂元素%'
OR fca_no LIKE '%锂元素%'
OR cas LIKE '%锂元素%'
OR chemical_name LIKE '%锂元素%'
OR use_range LIKE '%锂元素%'
OR `limit` LIKE '%锂元素%'
OR sml LIKE '%锂元素%'
OR other LIKE '%锂元素%'
OR other_name LIKE '%锂元素%'