Skip to content

存储模块创建

用户可使用SQLExecDirect函数执行创建存储模块的SQL语句创建存储模块,如下所示:

c
SQLExecDirect(hstmt, (SQLCHAR *)"create or replace procedure test_proc (c1 in int) as declare"
    "c2 int"
    "begin"
    "c2 := c1 + 100;"
    "end;", SQL_NTS);