티스토리 뷰

Data.DB.TDataSet.Append

Delphi

procedure Append;

C++

void __fastcall Append(void);

Properties

TypeVisibilitySourceUnitParent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DBTDataSet

Description

Adds a new, / empty record / to the end of the dataset.

For datasets that permit editing, / call Append to:

  1. Open a new, / empty record / at the end of the dataset.

  2. Set / the active record / to the new record.

After a call to Append, / an application / can enable users to enter data / in the fields of the record, / and can then post those changes to the database or change log / using Post (Client datasets / can subsequently apply updates / in the change log back to the database / by calling ApplyUpdates.) 

A newly appended record / is posted to the database in one of three ways:

For indexed Paradox and dBASE tables, / the record / is inserted into the dataset / in a position based on its index.

For unindexed Paradox and dBASE tables, / the record / is added to the end of the dataset.

For SQL databases, / the physical location of the appended record / is implementation-specific. 

After the new record / is applied back to the database server, / its physical location is database-specific. 

For indexed tables, / the index / is updated with the new record information.


데이터 세트의 끝에 빈 레코드를 새로 추가합니다.

편집을 허용하는 데이터 세트의 경우 Append를 호출하면 :

  1. 데이터 세트의 끝에 새 빈 레코드를 엽니다.

  2. 활성한 레코드를 새 레코드로 설정합니다.

Append를 호출 한 후 응용 프로그램에서 사용자가 레코드 필드에 데이터를 입력 할 수 있게 한 다음 Post를 호출하여 변경 사항을 데이터베이스에 게시하거나 로그를 변경할 수 있습니다 (클라이언트 데이터 세트는 ApplyUpdates를 호출하여 변경 로그의 업데이트를 데이터베이스에 다시 적용 할 수 있음).

새로 추가 된 레코드는 다음 세 가지 방법 중 하나로 데이터베이스에 게시됩니다.

인덱스 된 Paradox 및 dBASE 테이블의 경우 레코드는 해당 인덱스 기반에 위치한 데이터 세트에 삽입됩니다.

인덱스 되지 않은 Paradox 및 dBASE 테이블의 경우 레코드가 데이터 세트 끝에 추가됩니다.

SQL 데이터베이스의 경우, 추가 된 레코드의 물리적 위치는 구현에 따라 다릅니다.

새 레코드가 다시 데이터베이스 서버에 적용된 후에는 물리적 위치가 데이터베이스에 따라 다릅니다.

인덱스 된 테이블의 경우 인덱스가 새 레코드 정보로 업데이트됩니다.


permit 미국식 동사 [美pər|mɪt] 명사 [美|p3:rmɪt]

1. 허용하다   2. (어떤 일을) 가능하게 하다   3. (특히 한정된 기간 동안 유효한) 허가증

subsequently 미국·영국 [|sʌbsɪkwəntli]

그 뒤에, 나중에


출차: http://docwiki.embarcadero.com/Libraries/XE2/en/Data.DB.TDataSet.Append

'프로그래밍 언어 > Delphi' 카테고리의 다른 글

[Reference] TDataSet.Refresh  (0) 2016.12.11
[Reference] TDataSet.Delete  (0) 2016.12.10
[Reference] TDataSet.Insert  (0) 2016.12.08
[Reference] TDataSet.Cancel  (0) 2016.12.07
[Reference] TDataSet.Post  (0) 2016.12.06
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함