Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能Join以这种方式制作桌子:
Join
SELECT * FROM TableA JOIN TableB ON TableA.col = 'http://google.com/'+TableB.col
这两个表相互关联,除了一个表在值前面有一个字符串。 (like http://google.com)
(like http://google.com)
如果您以您编写的方式编写查询,例如
SELECT * FROM TABLEA A JOIN TABLEB B ON(A.column1 = CONCAT('http://google.com',B.column1));
它应该完成你的工作。
试试这个:
SELECT … FROM … JOIN TableB ON TableA.col LIKE CONCAT('http://google.com/',TableB.col);