登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
Gitee 2025 年度开源项目评选中
代码拉取完成,页面将自动刷新
开源项目
>
数据库相关
>
数据库服务
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
443
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
代码
Issues
976
Pull Requests
151
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
不支持insert all和insert first
待办的
#I26SC0
需求
lys6676
创建于
2020-11-24 17:08
openGauss不支持insert all和insert first, 测试大纲要求支持 --INSERT ALL create table trancfg( trancfg_testid varchar2(20) not null, trancfg_id varchar2(4) not null, trancfg_name varchar2(100), trancfg_procnum number, trancfg_runnum number, trancfg_trannum number, trancfg_brkpot varchar2(1), trancfg_brktime number, trancfg_fld1 varchar2(200), trancfg_fld2 varchar2(200), trancfg_fld3 number(19,2), trancfg_fld4 number(19,2) ); INSERT ALL INTO trancfg VALUES ('1', '1001', '转账', '10', '5000', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1002', '查询', '10', '5000', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1003', '代发工资', '5', '10', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1004', '存款', '10', '500', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1005', '取款', '10', '500', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1006', '资产盘点', '1', '1', '1', 'N', '0', null, null, null, null) SELECT 1 FROM DUAL; --INSERT FIRST CREATE TABLE t1(product_id NUMBER, product_name VARCHAR2(80),MONTH NUMBER); INSERT INTO t1 VALUES(111, '苹果',1); INSERT INTO t1 VALUES(222, '橘子',1); INSERT INTO t1 VALUES(333, '香蕉',1); create table t2 as select * from t1 where 1=0; create table t3 as select * from t1 where 1=0; create table t4 as select * from t1 where 1=0; create table t5 as select * from t1 where 1=0; insert first when month=1 then into t3 VALUES(product_id,product_name,month) when product_id=111 then into t4 VALUES(product_id,product_name,month) else into t5 VALUES(product_id,product_name,month) select product_id,product_name,month from t1; commit;
openGauss不支持insert all和insert first, 测试大纲要求支持 --INSERT ALL create table trancfg( trancfg_testid varchar2(20) not null, trancfg_id varchar2(4) not null, trancfg_name varchar2(100), trancfg_procnum number, trancfg_runnum number, trancfg_trannum number, trancfg_brkpot varchar2(1), trancfg_brktime number, trancfg_fld1 varchar2(200), trancfg_fld2 varchar2(200), trancfg_fld3 number(19,2), trancfg_fld4 number(19,2) ); INSERT ALL INTO trancfg VALUES ('1', '1001', '转账', '10', '5000', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1002', '查询', '10', '5000', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1003', '代发工资', '5', '10', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1004', '存款', '10', '500', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1005', '取款', '10', '500', '1', 'N', '0', null, null, null, null) INTO trancfg VALUES ('1', '1006', '资产盘点', '1', '1', '1', 'N', '0', null, null, null, null) SELECT 1 FROM DUAL; --INSERT FIRST CREATE TABLE t1(product_id NUMBER, product_name VARCHAR2(80),MONTH NUMBER); INSERT INTO t1 VALUES(111, '苹果',1); INSERT INTO t1 VALUES(222, '橘子',1); INSERT INTO t1 VALUES(333, '香蕉',1); create table t2 as select * from t1 where 1=0; create table t3 as select * from t1 where 1=0; create table t4 as select * from t1 where 1=0; create table t5 as select * from t1 where 1=0; insert first when month=1 then into t3 VALUES(product_id,product_name,month) when product_id=111 then into t4 VALUES(product_id,product_name,month) else into t5 VALUES(product_id,product_name,month) select product_id,product_name,month from t1; commit;
评论 (
3
)
登录
后才可以发表评论
状态
待办的
设计中
修复中
方案设计
待办的
需求分析
需求认领
需求评议
需求接纳
已拒绝
已完成
已验收
资料验收
已确认
挂起
负责人
未设置
标签
sig/sqlengine
kind/feature
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (20)
标签 (30)
master
6.0.0
5.0.0
datavec_poc
tp_poc
7.0.0-RC2
7.0.0-RC1
master_bak08271930
bugfix_0725
3.0.0
iud_dev
dev_board
5.1.0
kms
2.0.0
3.1.0
2.1.0
1.1.0
1.0.1
1.0.0
v7.0.0-RC2
v6.0.2
v7.0.0-RC1
v6.0.1
v3.0.6
v6.0.0
v3.0.5B009
v5.0.3
v5.0.2
v6.0.0-RC1
v3.0.5
v5.0.1
v5.1.0
5.1.0
v5.0.0
v3.0.3
v3.1.1
v3.0.2
v3.1.0
v2.0.5
v3.0.1
v2.0.4
v2.0.3
v3.0.0
v2.1.0
v2.0.1
v2.0.0
v1.1.0
v1.0.1
v1.0.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册