📄 ocidem.h
字号:
/*
* $Header: ocidem.h 08-nov-96.12:22:46 surman Exp $
*/
/* Copyright (c) 1991, 1996 by Oracle Corporation */
/*
NAME
ocidem.h - OCI demo header
MODIFIED (MM/DD/YY)
surman 11/08/96 - 413362: Add SS_64BIT_SERVER macro
emendez 04/07/94 - merge changes from branch 1.6.710.1
emendez 02/02/94 - Fix for bug 157576
jnlee 01/05/93 - include oratypes.h once, make oci_func_tab static
rkooi2 10/26/92 - More portability mods
rkooi2 10/22/92 - Change text back to char to avoid casts
rkooi2 10/20/92 - Changes to make it portable
sjain 03/16/92 - Creation
*/
/*
* ocidem.h
*
* Declares additional functions and data structures
* used in the OCI C sample programs.
*/
#ifndef ORATYPES
#include "oratypes.h"
#endif /* ORATYPES */
#ifndef OCIDEM
#define OCIDEM
/* internal/external datatype codes */
#define VARCHAR2_TYPE 1
#define NUMBER_TYPE 2
#define INT_TYPE 3
#define FLOAT_TYPE 4
#define STRING_TYPE 5
#define ROWID_TYPE 11
#define DATE_TYPE 12
/* ORACLE error codes used in demonstration programs */
#define VAR_NOT_IN_LIST 1007
#define NO_DATA_FOUND 1403
#define NULL_VALUE_RETURNED 1405
/* some SQL and OCI function codes */
#define FT_INSERT 3
#define FT_SELECT 4
#define FT_UPDATE 5
#define FT_DELETE 9
#define FC_OOPEN 14
/*
** Size of HDA area:
** 512 for 64 bit arquitectures
** 256 for 32 bit arquitectures
*/
#if (defined(__osf__) && defined(__alpha)) || defined(CRAY) || defined(KSR) || \
defined(SS_64BIT_SERVER)
# define HDA_SIZE 512
#else
# define HDA_SIZE 256
#endif
/*
* OCI function code labels,
* corresponding to the fc numbers
* in the cursor data area.
*/
static CONST ocitext *oci_func_tab[] = {(ocitext *) "not used",
/* 1-2 */ (ocitext *) "not used", (ocitext *) "OSQL",
/* 3-4 */ (ocitext *) "not used", (ocitext *) "OEXEC, OEXN",
/* 5-6 */ (ocitext *) "not used", (ocitext *) "OBIND",
/* 7-8 */ (ocitext *) "not used", (ocitext *) "ODEFIN",
/* 9-10 */ (ocitext *) "not used", (ocitext *) "ODSRBN",
/* 11-12 */ (ocitext *) "not used", (ocitext *) "OFETCH, OFEN",
/* 13-14 */ (ocitext *) "not used", (ocitext *) "OOPEN",
/* 15-16 */ (ocitext *) "not used", (ocitext *) "OCLOSE",
/* 17-18 */ (ocitext *) "not used", (ocitext *) "not used",
/* 19-20 */ (ocitext *) "not used", (ocitext *) "not used",
/* 21-22 */ (ocitext *) "not used", (ocitext *) "ODSC",
/* 23-24 */ (ocitext *) "not used", (ocitext *) "ONAME",
/* 25-26 */ (ocitext *) "not used", (ocitext *) "OSQL3",
/* 27-28 */ (ocitext *) "not used", (ocitext *) "OBNDRV",
/* 29-30 */ (ocitext *) "not used", (ocitext *) "OBNDRN",
/* 31-32 */ (ocitext *) "not used", (ocitext *) "not used",
/* 33-34 */ (ocitext *) "not used", (ocitext *) "OOPT",
/* 35-36 */ (ocitext *) "not used", (ocitext *) "not used",
/* 37-38 */ (ocitext *) "not used", (ocitext *) "not used",
/* 39-40 */ (ocitext *) "not used", (ocitext *) "not used",
/* 41-42 */ (ocitext *) "not used", (ocitext *) "not used",
/* 43-44 */ (ocitext *) "not used", (ocitext *) "not used",
/* 45-46 */ (ocitext *) "not used", (ocitext *) "not used",
/* 47-48 */ (ocitext *) "not used", (ocitext *) "not used",
/* 49-50 */ (ocitext *) "not used", (ocitext *) "not used",
/* 51-52 */ (ocitext *) "not used", (ocitext *) "OCAN",
/* 53-54 */ (ocitext *) "not used", (ocitext *) "OPARSE",
/* 55-56 */ (ocitext *) "not used", (ocitext *) "OEXFET",
/* 57-58 */ (ocitext *) "not used", (ocitext *) "OFLNG",
/* 59-60 */ (ocitext *) "not used", (ocitext *) "ODESCR",
/* 61-62 */ (ocitext *) "not used", (ocitext *) "OBNDRA"
};
#endif /* OCIDEM */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -