大网数据广告活动
磁盘与文件系统

User Defined Columns

· 52CE 我爱测

Learn more about: User Defined Columns

Applies to: Windows | Windows Server

User Defined Columns

User defined columns are columns whose default values are provided by a callback function. These columns are always tagged and set to the value computed by the callback function. This value must be stable for each row in the table. The callback function is only used when either the application or the database engine itself needs to read the value of the column for a given row. The application has the option to override the default value and set a specific value in the column. When the default value is overridden in the columns, it uses space in the row, otherwise user defined default columns do not use space in the record.

User defined defaults option is set in the grbit member of the JET_COLUMNDEF structure in the call to JetAddColumn. The pvDefault parameter of the JetAddColumn function points to a JET_USERDEFINEDDEFAULT structure, that contains the name of the callback function in the szCallback member, and the data that is passed to the callback in the pbUserData member.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。