From 13da78712fcc8b71f5b0a2709fc5f2f6e535dfb7 Mon Sep 17 00:00:00 2001 From: lihongji <2217180565@qq.com> Date: Thu, 19 Dec 2024 16:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pengauss_Function_Ai_Indexadv_Case0001.sql | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0001.sql diff --git a/openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0001.sql b/openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0001.sql deleted file mode 100644 index 81c2d28c23..0000000000 --- a/openGaussBase/testcase/AI/AI_INDEXADV/Opengauss_Function_Ai_Indexadv_Case0001.sql +++ /dev/null @@ -1,42 +0,0 @@ --- @testpoint: 单数据查询索引推荐 - ---test1:单数据查询索引推荐 ---step1:建表1;expect:建表1成功 -drop table if exists t_table_ai_indexadv_0001 cascade; -create table t_table_ai_indexadv_0001 (col_int int,col_numeric numeric, -col_float float,col_char char(10),col_text text,col_time time); - ---step2:建存储过程;expect:建存储过程成功 -create or replace procedure p_procedure_insert_0001(a int) is -V_int int; -V_numeric numeric; -V_float float; -V_char char(10); -V_text text; -V_time time; -begin -for i in 1..a -loop -V_int :=i; -V_numeric :=i+1.11; -V_float :=i*5.55; -V_char :='x_'|| i; -V_text :='V_text_'|| i; -V_time :='19:41:20'; -execute immediate 'insert into t_table_ai_indexadv_0001 values -(:p1,:p2,:p3,:p4,:p5,:p6) -'using V_int,V_numeric,V_float,V_char,V_text,V_time; -end loop; -end; -/ - ---step3:向表中插入1条数据并统计数据的数量;expec:向表中插入数据成功,返回表数据的数量; -call p_procedure_insert_0001(1); -select count(*) from t_table_ai_indexadv_0001 ; - ---step4:单数据查询索引推荐;expect:返回推荐的索引列为空 -select * from gs_index_advise('select * from t_table_ai_indexadv_0001 ;'); - ---step5:清理环境;expect:清理环境成功 -drop table t_table_ai_indexadv_0001; -drop procedure p_procedure_insert_0001; \ No newline at end of file -- Gitee