我在下面有一个详细的 SQL,并希望有人可以帮助我优化它,因为我认为它有点笨拙......感谢您的任何帮助,谢谢。
SELECT * FROM test.datalist
Where UserName Like '%SearchString%'
Or UserName In (
Select Synonym
From synonyms
Where Synonym Like '%SearchString%'
OR ListRef = ( Select ListRef
From synonyms
Where Synonym Like '%SearchString%')
);
收到所有建议。