DBMGetNumRecordsTable
Description
ƯÁ¤ Å×ÀÌºí¿¡ ¼ÓÇÑ ÃÑ ·¹ÄÚµå °³¼ö¸¦ ±¸ÇÑ´Ù.
Syntax
DBMErr DBMGetNumRecordsTable(TableId tableId, P_S32 numRecs);
Parameters
tableId
Å×À̺íÀÇ ID
numRecs
ÃÑ ·¹ÄÚµå °³¼ö
Returns
value
¼³¸í
DBM_OK
¼º°øÀûÀ¸·Î ¼öÇàµÈ °æ¿ì
DBM_INVALID_TABLE_ID
ÁÖ¾îÁø Å×À̺í id¸¦ °®´Â Å×À̺íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
DBM_DB_NOT_INITED
µ¥ÀÌŸº£À̽º°¡ ÃʱâȵǾî ÀÖÁö ¾ÊÀº °æ¿ì
Comments
Delete Ç÷¡±×°¡ DBM_ONÀÎ ·¹Äڵ带 Á¦¿ÜÇÑ, ³ª¸ÓÁö ·¹ÄÚµåµéÀÇ ÃÑ °³¼ö¸¦ ±¸ÇÑ´Ù.
Example
#include "dbm.h"
void main(void)
{
S32 numRecs;
DBMErr ret;
TableId tableId = 1;
ret = DBMGetNumRecordsTable( tableId, &numRecs);
if (ret == DBM_OK)
//Success!
else
// error handling
}