다음을 통해 공유


CODBCFieldInfo 구조체

The CODBCFieldInfo structure contains information about the fields in an ODBC data source.

struct CODBCFieldInfo 
{ 
   CString m_strName; 
   SWORD m_nSQLType; 
   UDWORD m_nPrecision; 
   SWORD m_nScale; 
   SWORD m_nNullability; 
};

매개 변수

  • m_strName
    필드 이름입니다.

  • m_nSQLType
    The SQL data type of the field. This can be an ODBC SQL data type or a driver-specific SQL data type. For a list of valid ODBC SQL data types, see "SQL Data Types" in the Windows SDK. For information about driver-specific SQL data types, see the driver's documentation.

  • m_nPrecision
    The maximum precision of the field. For details, see "Precision, Scale, Length, and Display Size" in the Windows SDK.

  • m_nScale
    The scale of the field. For details, see "Precision, Scale, Length, and Display Size" in the Windows SDK.

  • m_nNullability
    Whether the field accepts a Null value. This can be one of two values: SQL_NULLABLE if the field accepts Null values, or SQL_NO_NULLS if the field does not accept Null values.

설명

To retrieve this information, call CRecordset::GetODBCFieldInfo.

요구 사항

헤더: afxdb.h

참고 항목

참조

CRecordset::GetODBCFieldInfo

CRecordset::GetFieldValue

기타 리소스

구조체, 스타일, 콜백 및 메시지 맵