ex8.c

来自「Linux下的操作oracle数据库的连接库」· C语言 代码 · 共 22 行

C
22
字号
/* $Id: ex8.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */#include <stdio.h>#include <stdlib.h>#include "examples.h"int update_emp(sqlo_db_handle_t dbh, double factor, const char * job){  int stat;  char stmt[1024];  sprintf(stmt, "UPDATE EMP SET SAL = SAL * %f WHERE JOB = '%s'",          factor, job);  if ( 0 > (stat = sqlo_exec(dbh, stmt)))    error_exit(dbh, "sqlo_run");  return stat;                  /* number of processed rows */}/* $Id: ex8.c,v 1.4 2002/08/24 12:54:47 kpoitschke Exp $ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?