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