Brew Database Interface

Source: Internet
Author: User

I recently used the brew database interface to find some error-prone problems. I will record them for your reference.

1. idbrecord_update (idbrecord * pidbrecord, aeedbfield * pdbfields, int inumfields)

To update a field of a record in the database, all the fields of the record must be filled and updated together. Otherwise, if the size of the record used for update is different from that of the original record, this record is not updated, but an additional record is added.

I have not found a way to update the entire record by filling in only one field. If anyone knows, please leave a message and let me know. Thank you very much ~~~~

2. Int idbrecord_remove (idbrecord * pidbrecord )&

Idbrecord * idatabase_getrecordbyid (idatabase * pidatabase, uint16 u16recid)

You can use idbrecord_remove to delete a record in the database. Unfortunately, this does not delete the ID of the record in the database,

If the ID of the deleted record is 2 and the record ID is not updated, use idatabase_getrecordbyid (idatabase *

Pidatabase, 2); what you get is a deleted record, and an error is clearly returned.

It seems that only idbrecord * idatabase_getnextrecord (idatabase * pidatabase) can be used to traverse all records.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.