这是一个简单的查询,
L2:L10
其中dd是带有此声明的视图
SELECT fcellid,address FROM dd left JOIN r166 ON cgi like '%'+fcellid;
和r166是带
的视图select distinct fcellid from cdrData where cdrid=67;
现在我运行个人查询
select * from cellIDData where cid in (58);
它返回正确的结果,但是连接查询没有返回任何地址。
答案 0 :(得分:1)
您似乎选择了错误的运算符进行连接,更改会给您:
<div id="container">
<section class="new_menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="new_menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
<section class="menuSection">
<div>
<ul class="menu">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
</section>
</div>
这将更接近您指定的工作硬编码版本
SELECT fcellid,address FROM dd left JOIN r166 ON cgi like '%'||fcellid;
没有MCVE,你必须自己测试。