我有一个搜索字符串,我想要解析并将其转换为MySQL查询。例如:
(tag:"marketing" || tag:seo) && "example@example.com" && test
到
SELECT
*
FROM
`table`
WHERE
(`tag` LIKE "%marketing%" OR `tag` LIKE "%seo%") AND
content LIKE "%example@example.com%" AND
content LIKE "%test%"