【发布时间】:2017-01-14 00:57:19
【问题描述】:
我有两张带字符串的表。现在,这些字符串由" 分隔的不同部分组成。例如:
表 1:
---------------------
| 1 | hello"world |
---------------------
| 2 | hows"life"bro |
---------------------
表2:
-----------------------
| 1 | world"hello |
-----------------------
| 2 | hows"bro"life |
-----------------------
目前我收到这样的查询:
select * from table1 inner join table2
on table1.id = table2.id
where table1.colum2 = table2.colum2
我需要的查询应该显示两行,因为如果你从 table1 更改 hello 和 world 你会得到 table2 包含的 world"hello。我怎样才能做到这一点?
提前致谢
【问题讨论】:
-
总是用
"隔开吗? -
@Prdp 是的,它总是由
"分隔
标签: sql sql-server