DBMGetNumFieldsInTable
Description
ƯÁ¤ Å×ÀÌºí ½ºÅ°¸¶¿¡ Á¤ÀÇµÈ ÇʵåÀÇ ¼ö¸¦ ¹ÝȯÇÑ´Ù.
Syntax
DBMErr DBMGetNumFieldsInTable(TableId tableId, P_S32 numFields);
Parameters
tableId
Å×À̺íÀÇ ID
numFields
ÇʵåÀÇ °³¼ö
Returns
value
¼³¸í
DBM_OK
¼º°øÀûÀ¸·Î ¼öÇàµÈ °æ¿ì
DBM_INVALID_TABLE_ID
ÁÖ¾îÁø Å×À̺í id¸¦ °®´Â Å×À̺íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
DBM_DB_NOT_INITED
µ¥ÀÌŸº£À̽º°¡ ÃʱâȵǾî ÀÖÁö ¾ÊÀº °æ¿ì
Comments
DBMGetTableSchema
ÇÔ¼ö¸¦ È£ÃâÇϱâ Àü¿¡ fieldInfoÀÇ ¸Þ¸ð¸® ÇÒ´ç Á¤º¸¸¦ ¾ò±â À§ÇØ »ç¿ëÇÑ´Ù.
Example
#include "dbm.h"
void main(void)
{
S32 numFields;
DBMErr ret;
TableId tableId = 1;
ret = DBMGetNumFieldsInTable( tableId, &numFields);
if (ret == DBM_OK)
//success
else // error handling
}