as_DBMCloseScan
Description
ÇöÀç openµÈ ½ºÄµÀ» Á¾·áÇÑ´Ù.
Syntax
DBMErr as_DBMCloseScan(ScanId scanId);
Parameters
scanId ÇöÀç openµÈ ½ºÄµ ID
Returns
value
¼³¸í
DBM_OK
¼º°øÀûÀ¸·Î ¼öÇàµÈ °æ¿ì
DBM_INVALID_SCAN_ID
ÁÖ¾îÁø ½ºÄµ id¸¦ °®´Â ½ºÄµÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
DBM_DB_NOT_INITED
µ¥ÀÌŸº£À̽º°¡ ÃʱâȵǾî ÀÖÁö ¾ÊÀº °æ¿ì
Comments
½ºÄµÀ» openÇÑ °æ¿ì, °Ë»öÀÌ ³¡³ ÈÄ¿¡
as_DBMCloseScan
À» ¹Ýµå½Ã È£ÃâÇØ¾ß ÇÑ´Ù.
as_DBMCloseScan
À» È£ÃâÇÏÁö ¾ÊÀ» °æ¿ì, openµÈ ½ºÄµ °ü¸®ÀÚÀÇ ¸Þ¸ð¸® °ø°£ÀÌ freeµÇÁö ¾Ê´Â´Ù. ¶ÇÇÑ ÇöÀç µ¿½Ã¿¡ openµÈ ½ºÄµÀÇ °³¼ö¸¦ NUM_SCANS·Î Á¦ÇÑÇÏ°í ÀÖÀ¸¹Ç·Î, openµÈ ½ºÄµÀ» closeÇØÁÖÁö ¾ÊÀ¸¸é ¾ðÁ¨°¡´Â ´õ ÀÌ»ó ½ºÄµÀ» openÇÒ ¼ö ¾ø°Ô µÇ¾î °Ë»öÀÌ ºÒ°¡´ÉÇÏ°Ô µÈ´Ù.
See Also
as_DBMOpenSeqScanTable
,
as_DBMOpenSeqScanCategory
,
as_DBMOpenIndexScanTable
,
as_DBMGetNextRecordId
,
as_DBMGetPrevRecordId
,
as_DBMGetNextRecordIdWithJump
Example
/* Get scanId and recId. See the example of
as_DBMOpenSeqScanTable
*/
...
ret =
as_DBMOpenSeqScanTable
( tableId, indexFlag, offset, recOrder, &scanId);
if( ret < DBM_OK )
// error handling
...
ret = as_DBMCloseScan(scanId);
...