博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
不存在插入的一种写法
阅读量:4214 次
发布时间:2019-05-26

本文共 230 字,大约阅读时间需要 1 分钟。

create temporary table test (id int);
truncate table  test ;
insert into test 
select 1 from (
select 
(case (select count(1) num from actual_day_shop_sale ) when 0 then 1 end) can_insert
 )  as aa
where can_insert=1
select * from test 

转载地址:http://olfmi.baihongyu.com/

你可能感兴趣的文章
【Windows C++】调用powershell上传指定目录下所有文件
查看>>
Java图形界面中单选按钮JRadioButton和按钮Button事件处理
查看>>
小练习 - 排序:冒泡、选择、快排
查看>>
SparkStreaming 如何保证消费Kafka的数据不丢失不重复
查看>>
Spark Shuffle及其调优
查看>>
数据仓库分层
查看>>
常见数据结构-TrieTree/线段树/TreeSet
查看>>
Hive数据倾斜
查看>>
TopK问题
查看>>
Hive调优
查看>>
HQL排查数据倾斜
查看>>
DAG以及任务调度
查看>>
LeetCode——DFS
查看>>
MapReduce Task数目划分
查看>>
ZooKeeper分布式锁
查看>>
3126 Prime Path
查看>>
app自动化测试---ADBInterface驱动安装失败问题:
查看>>
RobotFramework+Eclipse安装步骤
查看>>
测试的分类
查看>>
photoshop cc2019快捷键
查看>>