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

📄 sql.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef _SQL_H
#define _SQL_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef ODBCVER
#define ODBCVER 0x0250
#endif
#include "sqltypes.h"
/* FIXME! */
#define SQL_SPEC_MAJOR (ODBCVER/0x100)
#define SQL_SPEC_MINOR (ODBCVER&0xFF00)
#define SQL_SPEC_STRING "02.50"
#define SQL_ACCESSIBLE_PROCEDURES 20
#define SQL_ACCESSIBLE_TABLES 19
#define SQL_ACCESS_MODE 101
#define SQL_ACTIVE_CONNECTIONS 0
#define SQL_ACTIVE_STATEMENTS 1
#define SQL_ALL_EXCEPT_LIKE 2
#define SQL_ALL_TYPES 0
#define SQL_ALTER_TABLE 86
#define SQL_API_ALL_FUNCTIONS 0
#define SQL_API_LOADBYORDINAL 199
#define SQL_API_SQLALLOCCONNECT 1
#define SQL_API_SQLALLOCENV 2
#define SQL_API_SQLALLOCSTMT 3
#define SQL_API_SQLBINDCOL 4
#define SQL_API_SQLBINDPARAMETER 72
#define SQL_API_SQLBROWSECONNECT 55
#define SQL_API_SQLCANCEL 5
#define SQL_API_SQLCOLATTRIBUTES 6
#define SQL_API_SQLCOLUMNPRIVILEGES 56
#define SQL_API_SQLCOLUMNS 40
#define SQL_API_SQLCONNECT 7
#define SQL_API_SQLDATASOURCES 57
#define SQL_API_SQLDESCRIBECOL 8
#define SQL_API_SQLDESCRIBEPARAM 58
#define SQL_API_SQLDISCONNECT 9
#define SQL_API_SQLDRIVERCONNECT 41
#define SQL_API_SQLDRIVERS 71
#define SQL_API_SQLERROR 10
#define SQL_API_SQLEXECDIRECT 11
#define SQL_API_SQLEXECUTE 12
#define SQL_API_SQLEXTENDEDFETCH 59
#define SQL_API_SQLFETCH 13
#define SQL_API_SQLFOREIGNKEYS 60
#define SQL_API_SQLFREECONNECT 14
#define SQL_API_SQLFREEENV 15
#define SQL_API_SQLFREESTMT 16
#define SQL_API_SQLGETCONNECTOPTION 42
#define SQL_API_SQLGETCURSORNAME 17
#define SQL_API_SQLGETDATA 43
#define SQL_API_SQLGETFUNCTIONS 44
#define SQL_API_SQLGETINFO 45
#define SQL_API_SQLGETSTMTOPTION 46
#define SQL_API_SQLGETTYPEINFO 47
#define SQL_API_SQLMORERESULTS 61
#define SQL_API_SQLNATIVESQL 62
#define SQL_API_SQLNUMPARAMS 63
#define SQL_API_SQLNUMRESULTCOLS 18
#define SQL_API_SQLPARAMDATA 48
#define SQL_API_SQLPARAMOPTIONS 64
#define SQL_API_SQLPREPARE 19
#define SQL_API_SQLPRIMARYKEYS 65
#define SQL_API_SQLPROCEDURECOLUMNS 66
#define SQL_API_SQLPROCEDURES 67
#define SQL_API_SQLPUTDATA 49
#define SQL_API_SQLROWCOUNT 20
#define SQL_API_SQLSETCONNECTOPTION 50
#define SQL_API_SQLSETCURSORNAME 21
#define SQL_API_SQLSETPARAM 22
#define SQL_API_SQLSETPOS 68
#define SQL_API_SQLSETSCROLLOPTIONS 69
#define SQL_API_SQLSETSTMTOPTION 51
#define SQL_API_SQLSPECIALCOLUMNS 52
#define SQL_API_SQLSTATISTICS 53
#define SQL_API_SQLTABLEPRIVILEGES 70
#define SQL_API_SQLTABLES 54
#define SQL_API_SQLTRANSACT 23
#define SQL_ASYNC_ENABLE_OFF 0
#define SQL_ASYNC_ENABLE_ON 1
#define SQL_ASYNC_ENABLE 4
#define SQL_ASYNC_ENABLE_DEFAULT SQL_ASYNC_ENABLE_OFF
#define SQL_ATTR_READONLY 0
#define SQL_ATTR_READWRITE_UNKNOWN 2
#define SQL_ATTR_WRITE 1
#define SQL_AT_ADD_COLUMN 1
#define SQL_AT_DROP_COLUMN 2
#define SQL_AUTOCOMMIT 102
#define SQL_AUTOCOMMIT_DEFAULT SQL_AUTOCOMMIT_ON
#define SQL_AUTOCOMMIT_OFF 0UL
#define SQL_AUTOCOMMIT_ON 1UL
#define SQL_BEST_ROWID 1
#define SQL_BIGINT (-5)
#define SQL_BINARY (-2)
#define SQL_BIND_BY_COLUMN 0UL
#define SQL_BIND_TYPE 5
#define SQL_BIND_TYPE_DEFAULT SQL_BIND_BY_COLUMN
#define SQL_BIT (-7)
#define SQL_BOOKMARK_PERSISTENCE 82
#define SQL_BP_CLOSE 1
#define SQL_BP_DELETE 2
#define SQL_BP_DROP 4
#define SQL_BP_OTHER_HSTMT 32
#define SQL_BP_SCROLL 64
#define SQL_BP_TRANSACTION 8
#define SQL_BP_UPDATE 16
#define SQL_CB_CLOSE 1
#define SQL_CB_DELETE 0
#define SQL_CB_NON_NULL 1
#define SQL_CB_NULL 0
#define SQL_CB_PRESERVE 2
#define SQL_CC_CLOSE SQL_CB_CLOSE
#define SQL_CC_DELETE SQL_CB_DELETE
#define SQL_CC_PRESERVE SQL_CB_PRESERVE
#define SQL_CHAR 1
#define SQL_CLOSE 0
#define SQL_CN_ANY 2
#define SQL_CN_DIFFERENT 1
#define SQL_CN_NONE 0
#define SQL_COLUMN_ALIAS 87
#define SQL_COLUMN_AUTO_INCREMENT 11
#define SQL_COLUMN_CASE_SENSITIVE 12
#define SQL_COLUMN_COUNT 0
#define SQL_COLUMN_DISPLAY_SIZE 6
#define SQL_COLUMN_DRIVER_START 1000
#define SQL_COLUMN_LABEL 18
#define SQL_COLUMN_LENGTH 3
#define SQL_COLUMN_MONEY 9
#define SQL_COLUMN_NAME 1
#define SQL_COLUMN_NULLABLE 7
#define SQL_COLUMN_OWNER_NAME 16
#define SQL_COLUMN_PRECISION 4
#define SQL_COLUMN_QUALIFIER_NAME 17
#define SQL_COLUMN_SCALE 5
#define SQL_COLUMN_SEARCHABLE 13
#define SQL_COLUMN_TABLE_NAME 15
#define SQL_COLUMN_TYPE 2
#define SQL_COLUMN_TYPE_NAME 14
#define SQL_COLUMN_UNSIGNED 8
#define SQL_COLUMN_UPDATABLE 10
#define SQL_COLATT_OPT_MAX SQL_COLUMN_LABEL
#define SQL_COLATT_OPT_MIN SQL_COLUMN_COUNT
#define SQL_COMMIT 0
#define SQL_CONCAT_NULL_BEHAVIOR 22
#define SQL_CONCURRENCY 7
#define SQL_CONCUR_READ_ONLY 1
#define SQL_CONCUR_ROWVER 3
#define SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY
#define SQL_CONCUR_LOCK 2
#define SQL_CONCUR_TIMESTAMP SQL_CONCUR_ROWVER
#define SQL_CONCUR_VALUES 4
#define SQL_CONNECT_OPT_DRVR_START 1000
#define SQL_PACKET_SIZE 112
#define SQL_CONN_OPT_MAX SQL_PACKET_SIZE
#define SQL_CONN_OPT_MIN SQL_ACCESS_MODE
#define SQL_CONVERT_BIGINT 53
#define SQL_CONVERT_BINARY 54
#define SQL_CONVERT_BIT 55
#define SQL_CONVERT_CHAR 56
#define SQL_CONVERT_DATE 57
#define SQL_CONVERT_DECIMAL 58
#define SQL_CONVERT_DOUBLE 59
#define SQL_CONVERT_FLOAT 60
#define SQL_CONVERT_FUNCTIONS 48
#define SQL_CONVERT_INTEGER 61
#define SQL_CONVERT_LONGVARBINARY 71
#define SQL_CONVERT_LONGVARCHAR 62
#define SQL_CONVERT_NUMERIC 63
#define SQL_CONVERT_REAL 64
#define SQL_CONVERT_SMALLINT 65
#define SQL_CONVERT_TIME 66
#define SQL_CONVERT_TIMESTAMP 67
#define SQL_CONVERT_TINYINT 68
#define SQL_CONVERT_VARBINARY 69
#define SQL_CONVERT_VARCHAR 70
#define SQL_CORRELATION_NAME 74
#define SQL_CR_CLOSE SQL_CB_CLOSE
#define SQL_CR_DELETE SQL_CB_DELETE
#define SQL_CR_PRESERVE SQL_CB_PRESERVE
#define SQL_CURRENT_QUALIFIER 109
#define SQL_CUR_DEFAULT SQL_CUR_USE_DRIVER
#define SQL_CUR_USE_DRIVER 2UL
#define SQL_CUR_USE_IF_NEEDED 0UL
#define SQL_CUR_USE_ODBC 1UL
#define SQL_CURSOR_COMMIT_BEHAVIOR 23
#define SQL_CURSOR_DYNAMIC 2UL
#define SQL_CURSOR_FORWARD_ONLY 0UL
#define SQL_CURSOR_KEYSET_DRIVEN 1UL
#define SQL_CURSOR_ROLLBACK_BEHAVIOR 24
#define SQL_CURSOR_STATIC 3UL
#define SQL_CURSOR_TYPE 6
#define SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY
#define SQL_CVT_BIGINT 0x00004000L
#define SQL_CVT_BINARY 0x00000400L
#define SQL_CVT_BIT 0x00001000L
#define SQL_CVT_CHAR 1
#define SQL_CVT_DATE 0x00008000L
#define SQL_CVT_DECIMAL 4
#define SQL_CVT_DOUBLE 128
#define SQL_CVT_FLOAT 32
#define SQL_CVT_INTEGER 8
#define SQL_CVT_LONGVARBINARY 0x00040000L
#define SQL_CVT_LONGVARCHAR 512
#define SQL_CVT_NUMERIC 2
#define SQL_CVT_REAL 64
#define SQL_CVT_SMALLINT 16
#define SQL_CVT_TIME 0x10000L
#define SQL_CVT_TIMESTAMP 0x20000L
#define SQL_CVT_TINYINT 0x2000L
#define SQL_CVT_VARBINARY 0x800L
#define SQL_CVT_VARCHAR 256
#define SQL_DATABASE_NAME 16
#define SQL_DATA_AT_EXEC (-2)
#define SQL_DATA_SOURCE_NAME 2
#define SQL_DATA_SOURCE_READ_ONLY 25
#define SQL_DATE 9
#define SQL_DBMS_NAME 17
#define SQL_DBMS_VER 18
#define SQL_DECIMAL 3
#define SQL_DEFAULT_TXN_ISOLATION 26
#define SQL_DOUBLE 8
#define SQL_DRIVER_HDBC 3
#define SQL_DRIVER_HENV 4
#define SQL_DRIVER_HLIB 76
#define SQL_DRIVER_HSTMT 5
#define SQL_DRIVER_NAME 6
#define SQL_DRIVER_ODBC_VER 77
#define SQL_DRIVER_VER 7
#define SQL_DROP 1
#define SQL_ENSURE 1
#define SQL_ERROR (-1)
#define SQL_EXPRESSIONS_IN_ORDERBY 27
#define SQL_EXT_API_LAST SQL_API_SQLBINDPARAMETER
#define SQL_EXT_API_START 40
#define SQL_FD_FETCH_ABSOLUTE 16
#define SQL_FD_FETCH_BOOKMARK 128
#define SQL_FD_FETCH_FIRST 2
#define SQL_FD_FETCH_LAST 4
#define SQL_FD_FETCH_NEXT 1
#define SQL_FD_FETCH_PREV SQL_FD_FETCH_PRIOR
#define SQL_FD_FETCH_PRIOR 8
#define SQL_FD_FETCH_RELATIVE 32
#define SQL_FD_FETCH_RESUME 64
#define SQL_FETCH_DIRECTION 8
#define SQL_FETCH_FIRST 2
#define SQL_FETCH_NEXT 1
#define SQL_FETCH_PREV SQL_FETCH_PRIOR
#define SQL_FETCH_RESUME 7
#define SQL_FILE_NOT_SUPPORTED 0
#define SQL_FILE_QUALIFIER 2
#define SQL_FILE_TABLE 1
#define SQL_FILE_USAGE 84
#define SQL_FLOAT 6
#define SQL_FN_CVT_CONVERT 1
#define SQL_FN_NUM_ABS 1
#define SQL_FN_NUM_ACOS 2
#define SQL_FN_NUM_ASIN 4
#define SQL_FN_NUM_ATAN 8
#define SQL_FN_NUM_ATAN2 16
#define SQL_FN_NUM_CEILING 32
#define SQL_FN_NUM_COS 64
#define SQL_FN_NUM_COT 128
#define SQL_FN_NUM_DEGREES 0x40000L
#define SQL_FN_NUM_EXP 256
#define SQL_FN_NUM_FLOOR 512
#define SQL_FN_NUM_LOG 1024
#define SQL_FN_NUM_LOG10 0x80000L
#define SQL_FN_NUM_MOD 0x800L
#define SQL_FN_NUM_PI 0x10000L
#define SQL_FN_NUM_POWER 0x100000L
#define SQL_FN_NUM_RADIANS 0x200000L
#define SQL_FN_NUM_RAND 0x20000L
#define SQL_FN_NUM_ROUND 0x400000L
#define SQL_FN_NUM_SIGN 0x1000L
#define SQL_FN_NUM_SIN 0x2000L
#define SQL_FN_NUM_SQRT 0x00004000L
#define SQL_FN_NUM_TAN 0x00008000L
#define SQL_FN_NUM_TRUNCATE 0x00800000L
#define SQL_FN_STR_ASCII 0x00002000L
#define SQL_FN_STR_CHAR 0x00004000L
#define SQL_FN_STR_CONCAT 1
#define SQL_FN_STR_DIFFERENCE 0x00008000L
#define SQL_FN_STR_INSERT 2
#define SQL_FN_STR_LCASE 64
#define SQL_FN_STR_LEFT 4
#define SQL_FN_STR_LENGTH 16
#define SQL_FN_STR_LOCATE 32
#define SQL_FN_STR_LOCATE_2 0x00010000L
#define SQL_FN_STR_LTRIM 8
#define SQL_FN_STR_REPEAT 128
#define SQL_FN_STR_REPLACE 256
#define SQL_FN_STR_RIGHT 512
#define SQL_FN_STR_RTRIM 1024
#define SQL_FN_STR_SOUNDEX 0x00020000L
#define SQL_FN_STR_SPACE 0x00040000L
#define SQL_FN_STR_SUBSTRING 0x00000800L
#define SQL_FN_STR_UCASE 0x00001000L
#define SQL_FN_SYS_DBNAME 0x00000002L
#define SQL_FN_SYS_IFNULL 0x00000004L
#define SQL_FN_SYS_USERNAME 0x00000001L
#define SQL_FN_TD_CURDATE 0x00000002L
#define SQL_FN_TD_CURTIME 0x00000200L
#define SQL_FN_TD_DAYNAME 0x00008000L
#define SQL_FN_TD_DAYOFMONTH 0x00000004L
#define SQL_FN_TD_DAYOFWEEK 0x00000008L
#define SQL_FN_TD_DAYOFYEAR 0x00000010L
#define SQL_FN_TD_HOUR 0x00000400L
#define SQL_FN_TD_MINUTE 0x00000800L
#define SQL_FN_TD_MONTH 32
#define SQL_FN_TD_MONTHNAME 0x00010000L
#define SQL_FN_TD_NOW 1
#define SQL_FN_TD_QUARTER 64
#define SQL_FN_TD_SECOND 0x00001000L
#define SQL_FN_TD_TIMESTAMPADD 0x00002000L
#define SQL_FN_TD_TIMESTAMPDIFF 0x00004000L
#define SQL_FN_TD_WEEK 128
#define SQL_FN_TD_YEAR 256
#define SQL_FN_TSI_DAY 16
#define SQL_FN_TSI_FRAC_SECOND 1
#define SQL_FN_TSI_HOUR 8
#define SQL_FN_TSI_MINUTE 4
#define SQL_FN_TSI_MONTH 64
#define SQL_FN_TSI_QUARTER 128
#define SQL_FN_TSI_SECOND 2
#define SQL_FN_TSI_WEEK 32
#define SQL_FN_TSI_YEAR 256
#define SQL_GB_GROUP_BY_CONTAINS_SELECT 2
#define SQL_GB_GROUP_BY_EQUALS_SELECT 1
#define SQL_GB_NOT_SUPPORTED 0
#define SQL_GB_NO_RELATION 3
#define SQL_GD_ANY_COLUMN 1
#define SQL_GD_ANY_ORDER 2
#define SQL_GD_BLOCK 4
#define SQL_GD_BOUND 8
#define SQL_GETDATA_EXTENSIONS 81
#define SQL_GET_BOOKMARK 13
#define SQL_GROUP_BY 88
#define SQL_IC_LOWER 2
#define SQL_IC_MIXED 4
#define SQL_IC_SENSITIVE 3
#define SQL_IC_UPPER 1
#define SQL_IDENTIFIER_CASE 28
#define SQL_IDENTIFIER_QUOTE_CHAR 29
#define SQL_INDEX_ALL 1
#define SQL_INDEX_CLUSTERED 1
#define SQL_INDEX_HASHED 2
#define SQL_INDEX_OTHER 3
#define SQL_INDEX_UNIQUE 0
#define SQL_INFO_DRIVER_START 1000
#define SQL_INFO_FIRST 0
#define SQL_INFO_LAST SQL_QUALIFIER_LOCATION
#define SQL_INTEGER 4

⌨️ 快捷键说明

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