With mysql solution can also draw lessons from
CodePudding user response:
Mysql how to solve this situationCodePudding user response:
Traditional way: tableA like 'a %' or tableB like 'a %' column and indexedPGSQL another solution: create index of GiST