ex10.c
来自「一个很好用的Linux/Unix下Oracle OCI开发接口封装库」· C语言 代码 · 共 21 行
C
21 行
/* $Id: ex10.c,v 1.1 2005/01/13 02:56:43 cvsroot Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include "examples.h"
sqlo_stmt_handle_t prepare_cursor(sqlo_db_handle_t dbh, double * min_salary)
{
sqlo_stmt_handle_t sth; /* statement handle */
if (0 > (sth = sqlo_prepare(dbh,
"SELECT ENAME, SAL FROM EMP WHERE SAL >= :salary ORDER BY 2,1")))
error_exit(dbh, "sqlo_prepare");
if (SQLO_SUCCESS !=
sqlo_bind_by_pos(sth, 1, SQLOT_FLT, min_salary, sizeof(double), 0, 0))
error_exit(dbh, "sqlo_bind_by_pos");
return sth;
}
/* $Id: ex10.c,v 1.1 2005/01/13 02:56:43 cvsroot Exp $ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?