Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
El identificador del tipo de datos DE SQL ODBC bit es:
SQL_BIT
En la tabla siguiente se muestran los tipos de datos ODBC C en los que se pueden convertir los datos SQL de bits. Para obtener una explicación de las columnas y los términos de la tabla, vea Convertir datos de SQL a tipos de datos de C.
| Identificador de tipo C | Prueba | * TargetValuePtr | * StrLen_or_IndPtr | SQLSTATE |
|---|---|---|---|---|
| SQL_C_CHAR SQL_C_WCHAR |
BufferLength> 1 BufferLength< = 1 |
data No definido |
1 No definido |
N/D 22003 |
| SQL_C_STINYINT SQL_C_UTINYINT SQL_C_TINYINT SQL_C_SBIGINT SQL_C_UBIGINT SQL_C_SSHORT SQL_C_USHORT SQL_C_SHORT SQL_C_SLONG SQL_C_ULONG SQL_C_LONG SQL_C_FLOAT SQL_C_DOUBLE SQL_C_NUMERIC |
Ninguno[a] | data | Tamaño del tipo de datos de C | N/D |
| SQL_C_BIT | Ninguno[a] | data | 1[b] | N/D |
| SQL_C_BINARY |
BufferLength> = 1 BufferLength< 1 |
data No definido |
1 No definido |
N/D 22003 |
[a] El valor de BufferLength se omite para esta conversión. El controlador supone que el tamaño de *TargetValuePtr es el tamaño del tipo de datos de C.
[b] Este es el tamaño del tipo de datos de C correspondiente.
Cuando los datos SQL de bits se convierten en datos de caracteres C, los valores posibles son "0" y "1".