OdbcType 列挙型
定義
OdbcParameter に使用する、フィールドまたはプロパティのデータ型を指定します。Specifies the data type of a field, property, for use in an OdbcParameter.
public enum class OdbcType
public enum OdbcType
type OdbcType =
Public Enum OdbcType
- 継承
フィールド
BigInt | 1 | 精度が 19 (符号付きの場合) または精度が 20 (符号なしの場合) および小数部桁数が 0 の真数値 (符号付き: -2[63] <= n <= 2[63] - 1、符号なし: 0 <= n <= 2[64] - 1) (SQL_BIGINT)。Exact numeric value with precision 19 (if signed) or 20 (if unsigned) and scale 0 (signed: -2[63] <= n <= 2[63] - 1, unsigned:0 <= n <= 2[64] - 1) (SQL_BIGINT). Int64 に割り当てられます。This maps to Int64. |
Binary | 2 | バイナリ データのストリーム (SQL_BINARY)。A stream of binary data (SQL_BINARY). Array 型の Byte に割り当てられます。This maps to an Array of type Byte. |
Bit | 3 | 1 ビットのバイナリ データ (SQL_BIT)。Single bit binary data (SQL_BIT). Boolean に割り当てられます。This maps to Boolean. |
Char | 4 | 固定長文字列 (SQL_CHAR)。A fixed-length character string (SQL_CHAR). String に割り当てられます。This maps to String. |
Date | 23 | yyyymmdd 形式の日付データ (SQL_TYPE_DATE)。Date data in the format yyyymmdd (SQL_TYPE_DATE). DateTime に割り当てられます。This maps to DateTime. |
DateTime | 5 | yyyymmddhhmmss 形式の日付データ (SQL_TYPE_TIMESTAMP)。Date data in the format yyyymmddhhmmss (SQL_TYPE_TIMESTAMP). DateTime に割り当てられます。This maps to DateTime. |
Decimal | 6 | 最小精度が p および小数部桁数が s の符号付き概数数値 (1 <= p <= 15 および s <= p)。Signed, exact, numeric value with a precision of at least p and scale s, where 1 <= p <= 15 and s <= p. 最大精度は、ドライバーによって異なります (SQL_DECIMAL)。The maximum precision is driver-specific (SQL_DECIMAL). Decimal に割り当てられます。This maps to Decimal. |
Double | 8 | バイナリ精度が 53 の符号付き概数数値 (0、または絶対値が 10[-308] から 10[308] の間) (SQL_DOUBLE)。Signed, approximate, numeric value with a binary precision 53 (zero or absolute value 10[-308] to 10[308]) (SQL_DOUBLE). Double に割り当てられます。This maps to Double. |
Image | 9 | 可変長バイナリ データ。Variable length binary data. 最大長は、データ ソースによって異なります (SQL_LONGVARBINARY)。Maximum length is data source-dependent (SQL_LONGVARBINARY). Array 型の Byte に割り当てられます。This maps to an Array of type Byte. |
Int | 10 | 精度が 10 および小数部桁数が 0 の真数値 (符号付き: -2[31] <= n <= 2[31] - 1、符号なし: 0 <= n <= 2[32] - 1) (SQL_INTEGER)。Exact numeric value with precision 10 and scale 0 (signed: -2[31] <= n <= 2[31] - 1, unsigned:0 <= n <= 2[32] - 1) (SQL_INTEGER). Int32 に割り当てられます。This maps to Int32. |
NChar | 11 | 固定文字列長の Unicode 文字列 (SQL_WCHAR)。Unicode character string of fixed string length (SQL_WCHAR). String に割り当てられます。This maps to String. |
NText | 12 | Unicode 可変長文字データ。Unicode variable-length character data. 最大長は、データ ソースによって異なります。Maximum length is data source-dependent. (SQL_WLONGVARCHAR)。(SQL_WLONGVARCHAR). String に割り当てられます。This maps to String. |
Numeric | 7 | 精度が p および小数部桁数が s の符号付き真数値 (1 <= p <= 15 および s <= p) (SQL_NUMERIC)。Signed, exact, numeric value with a precision p and scale s, where 1 <= p <= 15, and s <= p (SQL_NUMERIC). Decimal に割り当てられます。This maps to Decimal. |
NVarChar | 13 | Unicode 文字の可変長ストリーム (SQL_WVARCHAR)。A variable-length stream of Unicode characters (SQL_WVARCHAR). String に割り当てられます。This maps to String. |
Real | 14 | バイナリ精度が 24 の符号付き概数数値 (0、または絶対値が 10[-38] から 10[38] の間) (SQL_REAL)。Signed, approximate, numeric value with a binary precision 24 (zero or absolute value 10[-38] to 10[38]).(SQL_REAL). Single に割り当てられます。This maps to Single. |
SmallDateTime | 16 | yyyymmddhhmmss 形式の日付と時刻のデータ (SQL_TYPE_TIMESTAMP)。Data and time data in the format yyyymmddhhmmss (SQL_TYPE_TIMESTAMP). DateTime に割り当てられます。This maps to DateTime. |
SmallInt | 17 | 精度が 5 および小数部桁数が 0 の真数値 (符号付き: -32,768 <= n <= 32,767、符号なし: 0 <= n <= 65,535) (SQL_SMALLINT)。Exact numeric value with precision 5 and scale 0 (signed: -32,768 <= n <= 32,767, unsigned: 0 <= n <= 65,535) (SQL_SMALLINT). Int16 に割り当てられます。This maps to Int16. |
Text | 18 | 可変長文字データ。Variable length character data. 最大長は、データ ソースによって異なります (SQL_LONGVARCHAR)。Maximum length is data source-dependent (SQL_LONGVARCHAR). String に割り当てられます。This maps to String. |
Time | 24 | hhmmss 形式の日付データ (SQL_TYPE_TIMES)。Date data in the format hhmmss (SQL_TYPE_TIMES). DateTime に割り当てられます。This maps to DateTime. |
Timestamp | 19 | バイナリ データのストリーム (SQL_BINARY)。A stream of binary data (SQL_BINARY). Array 型の Byte に割り当てられます。This maps to an Array of type Byte. |
TinyInt | 20 | 精度が 3 および小数部桁数が 0 の真数値 (符号付き: -128 <= n <= 127、符号なし: 0 <= n <= 255) (SQL_TINYINT)。Exact numeric value with precision 3 and scale 0 (signed: -128 <= n <= 127, unsigned:0 <= n <= 255)(SQL_TINYINT). Byte に割り当てられます。This maps to Byte. |
UniqueIdentifier | 15 | 固定長 GUID (SQL_GUID)。A fixed-length GUID (SQL_GUID). Guid に割り当てられます。This maps to Guid. |
VarBinary | 21 | 可変長バイナリ。Variable length binary. 最大値は、ユーザーが設定します (SQL_VARBINARY)。The maximum is set by the user (SQL_VARBINARY). Array 型の Byte に割り当てられます。This maps to an Array of type Byte. |
VarChar | 22 | 可変長ストリーム文字列 (SQL_CHAR)。A variable-length stream character string (SQL_CHAR). String に割り当てられます。This maps to String. |
注釈
次の表は、 OdbcType データ型、ODBC データ型 (かっこで示します)、および .NET Framework 型間のマッピングを示しています。The following table shows mappings between OdbcType data types, ODBC data types (shown in parentheses), and .NET Framework types.