📄 ex10.c
字号:
/* $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -