如何解决在雅典娜表中插入之前检查行是否存在
Result i am getting when same row is added
我想在插入雅典娜之前检查是否存在同一行,以避免表abc中有任何重复的行。
是否可以在雅典娜表中使用“检查是否存在”。下面的代码用于在表abc中添加数据。
insert into table abc
with tmp as(
select
date,price1,price2
from
table2
)
select
*
from
tmp
where
price1 > 100
;
解决方法
您绝对可以检查行是否已存在-您可以使用<secion class="intro">
<nav>
<a href="#" id="menu-icon"></a>
<ul>
<li><a href="#about">About Me</a></li>
<li><a href="#port">Portfolio</a></li>
<li><a href="#serv">Services</a></li>
<li><a href="#contact">Contact Me</a></li>
</ul>
</nav>
<div ckass="inner">
<div class="content">
<h1>Photography</h1>
<p>my pictures</p>
</div>
</div>
</section>
:
如果子查询未返回任何行,则不满足
where not exists
但是,请记住,雅典娜无法更新曾经写入的数据。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。