⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sql.h

📁 能够连接各种数据库的API
💻 H
📖 第 1 页 / 共 5 页
字号:
#define SQL_TYP_LSTR           476     /* varying length string for Pascal    */                                       /* (1-byte length)                     */#define SQL_TYP_NLSTR          (SQL_TYP_LSTR+SQL_TYP_NULINC)#define SQL_TYP_FLOAT          480     /* FLOAT - 4 or 8 byte floating point  */#define SQL_TYP_NFLOAT         (SQL_TYP_FLOAT+SQL_TYP_NULINC)#define SQL_TYP_DECIMAL        484     /* DECIMAL (m,n)                       */#define SQL_TYP_NDECIMAL       (SQL_TYP_DECIMAL+SQL_TYP_NULINC)#define SQL_TYP_ZONED          488     /* Zoned Decimal -> DECIMAL (m,n)      */#define SQL_TYP_NZONED         (SQL_TYP_ZONED+SQL_TYP_NULINC)#define SQL_TYP_BIGINT         492     /* BIGINT - 8-byte signed integer      */#define SQL_TYP_NBIGINT        (SQL_TYP_BIGINT+SQL_TYP_NULINC)#define SQL_TYP_INTEGER        496     /* INTEGER - 4-byte signed integer     */#define SQL_TYP_NINTEGER       (SQL_TYP_INTEGER+SQL_TYP_NULINC)#define SQL_TYP_SMALL          500     /* SMALLINT - 2-byte signed integer    */#define SQL_TYP_NSMALL         (SQL_TYP_SMALL+SQL_TYP_NULINC)#define SQL_TYP_NUMERIC        504     /* NUMERIC -> DECIMAL (m,n)            */#define SQL_TYP_NNUMERIC       (SQL_TYP_NUMERIC+SQL_TYP_NULINC)#define SQL_TYP_BLOB_FILE_OBSOLETE 804 /* Obsolete Value                      */#define SQL_TYP_NBLOB_FILE_OBSOLETE (SQL_TYP_BLOB_FILE_OBSOLETE+SQL_TYP_NULINC)#define SQL_TYP_CLOB_FILE_OBSOLETE 808 /* Obsolete Value                      */#define SQL_TYP_NCLOB_FILE_OBSOLETE (SQL_TYP_CLOB_FILE_OBSOLETE+SQL_TYP_NULINC)#define SQL_TYP_DBCLOB_FILE_OBSOLETE 812 /* Obsolete Value                    */#define SQL_TYP_NDBCLOB_FILE_OBSOLETE (SQL_TYP_DBCLOB_FILE_OBSOLETE+SQL_TYP_NULINC)#define SQL_TYP_BLOB_FILE      916     /* BLOB File - Binary Large Object     */                                       /* File                                */#define SQL_TYP_NBLOB_FILE     (SQL_TYP_BLOB_FILE+SQL_TYP_NULINC)#define SQL_TYP_CLOB_FILE      920     /* CLOB File - Char Large Object File  */#define SQL_TYP_NCLOB_FILE     (SQL_TYP_CLOB_FILE+SQL_TYP_NULINC)#define SQL_TYP_DBCLOB_FILE    924     /* DBCLOB File - Double Byte Char      */                                       /* Large Object File                   */#define SQL_TYP_NDBCLOB_FILE   (SQL_TYP_DBCLOB_FILE+SQL_TYP_NULINC)#define SQL_TYP_BLOB_LOCATOR   960     /* BLOB locator                        */#define SQL_TYP_NBLOB_LOCATOR  (SQL_TYP_BLOB_LOCATOR+SQL_TYP_NULINC)#define SQL_TYP_CLOB_LOCATOR   964     /* CLOB locator                        */#define SQL_TYP_NCLOB_LOCATOR  (SQL_TYP_CLOB_LOCATOR+SQL_TYP_NULINC)#define SQL_TYP_DBCLOB_LOCATOR 968     /* DBCLOB locator                      */#define SQL_TYP_NDBCLOB_LOCATOR (SQL_TYP_DBCLOB_LOCATOR+SQL_TYP_NULINC)#define SQL_LOBTOKEN_LEN       SQL_LOBLOCATOR_LEN#define SQL_TYP_BLOB_TOKEN     SQL_TYP_BLOB_LOCATOR#define SQL_TYP_NBLOB_TOKEN    SQL_TYP_NBLOB_LOCATOR#define SQL_TYP_CLOB_TOKEN     SQL_TYP_CLOB_LOCATOR#define SQL_TYP_NCLOB_TOKEN    SQL_TYP_NCLOB_LOCATOR#define SQL_TYP_DBCLOB_TOKEN   SQL_TYP_DBCLOB_LOCATOR#define SQL_TYP_NDBCLOB_TOKEN  SQL_TYP_NDBCLOB_LOCATOR#define SQL_NCLOB_MAXLEN       SQL_DBCLOB_MAXLEN#define SQL_LOBHANDLE_LEN      SQL_LOBTOKEN_LEN#define SQL_TYP_BLOB_HANDLE    SQL_TYP_BLOB_TOKEN#define SQL_TYP_NBLOB_HANDLE   SQL_TYP_NBLOB_TOKEN#define SQL_TYP_CLOB_HANDLE    SQL_TYP_CLOB_TOKEN#define SQL_TYP_NCLOB_HANDLE   SQL_TYP_NCLOB_TOKEN#define SQL_TYP_DBCLOB_HANDLE  SQL_TYP_DBCLOB_TOKEN#define SQL_TYP_NDBCLOB_HANDLE SQL_TYP_NDBCLOB_TOKEN/* Values for 30th byte of sqlname                                            */#define SQL_SQLNAME_SYSGEN     ((char) 0xFF) /* sqlname is system generated   */#define SQL_SQLNAME_NOT_SYSGEN ((char) 0x00) /* sqlname is directly derived   */                                             /* from a single column or       */                                             /* specified in the AS clause    *//* Return Codes for sqlabndx, sqlaprep and sqlarbnd                           */#define SQLA_RC_OPT_IGNORED    20      /* The option(s) specified are not     */                                       /* supported by the target  database   */                                       /* and will be ignored                 */#define SQLA_RC_BINDWARN       25      /* Bind execution succeeded with       */                                       /* warnings.                           */#define SQLA_RC_PREPWARN       25      /* Precompilation succeeded with       */                                       /* warnings.                           */#define SQLA_RC_BINDERROR      -1      /* Bind execution failed               */#define SQLA_RC_PREPERROR      -1      /* Precompilation failed               */#define SQLA_RC_BAD_BINDNAME   -2      /* Invalid bind file                   */#define SQLA_RC_BAD_DBNAME     -3      /* Invalid database                    */#define SQLA_RC_BAD_MSGNAME    -5      /* Invalid message file                */#define SQLA_RC_BAD_FORMAT     -6      /* Invalid format                      */#define SQLA_RC_OPEN_ERROR     -31     /* Error opening list file             */#define SQLA_RC_MFILE_OPEN_ERR -35     /* Error opening message file          */#define SQLA_RC_FILE_NAME_BAD  -36     /* Source file name is invalid         */#define SQLA_RC_BAD_BNDFILE    -39     /* Bind file corrupted                 */#define SQLA_RC_LIST_ERROR     -40     /* Bind list errors                    */#define SQLA_RC_INTERRUPT      -94     /* Interrupt                           */#define SQLA_RC_OSERROR        -1086   /* System error                        */#define SQLA_RC_PREP_BIND_BUSY -1392   /* Prep/Bind already in use            */#define SQLA_RC_OPTION_LEN_BAD -4903   /* Invalid parm. length                */#define SQLA_RC_OPTION_PTR_BAD -4904   /* Invalid parm. ptr                   */#define SQLA_RC_OPTION_SIZE_BAD -4905  /* Invalid parm. size                  */#define SQLA_RC_OPTION_DATA_BAD -4917  /* Invalid parm. data                  */#define SQLA_RC_OPTION_INVALID -4930   /* Invalid option or option value      */#define SQLA_RC_SDK_LICENSE    -8005   /* No SDK/6000 license                 *//* Values used for the date/time format parameter of sqlabind() ** OBSOLETE   *//* **                                                                         */#define SQL_FMT_DEF            "DEF"   /* FORMAT = Default for Country Code   */#define SQL_FMT_USA            "USA"   /* FORMAT = USA                        */#define SQL_FMT_EUR            "EUR"   /* FORMAT = EUR                        */#define SQL_FMT_ISO            "ISO"   /* FORMAT = ISO                        */#define SQL_FMT_JIS            "JIS"   /* FORMAT = JIS                        */#define SQL_FMT_LOC            "LOC"   /* FORMAT = LOCAL                      *//* The size of a date/time format buffer                                      */#define SQL_FMT_LENGTH         3/* Structures used system wide                                                */#ifndef SQL_SQLDBCHAR_DEFN#define SQL_SQLDBCHAR_DEFN  typedef unsigned short sqldbchar;#endifSQL_STRUCTURE sqlchar                  /* General-purpose VARCHAR for         */                                       /* casting                             */{        short                  length;        _SQLOLDCHAR            data[1];};SQL_STRUCTURE sqlgraphic               /* General-purpose VARGRAPHIC for      */                                       /* casting                             */{        short                  length;#ifdef SQL_WCHART_CONVERT        wchar_t                data[1];#else        sqldbchar              data[1];#endif};SQL_STRUCTURE sqllob                   /* General-purpose LOB for casting     */{        sqluint32              length;        char                   data[1];};SQL_STRUCTURE sqldbclob                /* General-purpose DBCLOB for casting  */{        sqluint32              length;#ifdef SQL_WCHART_CONVERT        wchar_t                data[1];#else        sqldbchar              data[1];#endif};SQL_STRUCTURE sqlfile                  /* File reference structure for LOBs   */{        sqluint32              name_length;        sqluint32              data_length;        sqluint32              file_options;        char                   name[255];};/* Values used for file_options in the sqlfile structure                      */#define SQL_FILE_READ          2       /* Input file to read from             */#define SQL_FILE_CREATE        8       /* Output file - new file to be        */                                       /* created                             */#define SQL_FILE_OVERWRITE     16      /* Output file - overwrite existing    */                                       /* file or create a new file if it     */                                       /* doesn't exist                       */#define SQL_FILE_APPEND        32      /* Output file - append to an          */                                       /* existing file or create a new file  */                                       /* if it doesn't exist                 *//* Structure used to store binder options when calling sqlabndr()             *//* or sqlabndx(), or to store precompile options when calling                 *//* sqlaprep(), or to store rebind options when calling sqlarbnd().            */#define sqlbindopt sqloptions#ifndef SQL_BIND_OPTSSQL_STRUCTURE sqloptheader     /* Header for sqlopt structure */{   sqluint32     allocated; /* Number of options allocated */   sqluint32     used;      /* Number of options used */};SQL_STRUCTURE sqloptions       /* bind/prep/rebind option          */{   sqluint32     type; /* Type  of bind/prep/rebind option */   sqluintptr    val;  /* Value of bind/prep/rebind option */};SQL_STRUCTURE sqlopt{   SQL_STRUCTURE sqloptheader header;     /* Header for sqlopt structure */   SQL_STRUCTURE sqloptions   option[1];  /* Array of bind/prep/rebind options  */};#define SQL_BIND_OPTS

⌨️ 快捷键说明

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