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

Adding Tables to the Database

· 52CE 我爱测

Learn more about: Adding Tables to the Database

Applies to: Windows | Windows Server

Adding Tables to the Database

Tables are a heterogeneous collection of records that physically and logically group the data in the database. Tables are uniquely identified by their name. The table ID (JET_TABLEID) is a handle to a cursor that is used to update and navigate tables. You may open multiple JET_TABLEID on the same table.

An existing table is opened in the call to JetOpenTable, and a new table is created without rows or columns with JetCreateTable. To atomically create a table with an initial set of columns and indices, call JetCreateTableColumnIndex or JetCreateTableColumnIndex2. The initial size of the table is given in the lPages parameter in JetCreateTable or the ulPages member of the JET_TABLECREATE structure in the call to JetCreateTableColumnIndex. Tables grow automatically when data is added to the table. The growth is proportional to the initial size of the table. Columns may be added to the table at any time with JetAddColumn. When the application no longer needs to access the table, the cursor can be closed with JetCloseTable. The table may be deleted via a call to JetDeleteTable.

Table operations should be performed within the context of a transaction.

See Also

Transactions

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)

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

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