也许是这样的(这里是SQL FIDDLE )?
SELECt table1.title title1, table2.title title2FROM table1, table2WHERe table1.title LIKE CONCAt('%',table2.title,'%') OR table2.title LIKE CONCAt('%',table1.title,'%');
欢迎分享,转载请注明来源:内存溢出
也许是这样的(这里是SQL FIDDLE )?
SELECt table1.title title1, table2.title title2FROM table1, table2WHERe table1.title LIKE CONCAt('%',table2.title,'%') OR table2.title LIKE CONCAt('%',table1.title,'%');
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)