Conn. Open MySQL, Conn, a, B Parameter A is the type of the Set cursor, and its value is: 0: Only forward cursor. Only forward browsing records are supported. pagination, recordset, and bookmark are not supported. 1. keyset cursor. The changes made by other users to the record will be reflected in the record set, but the addition or deletion of records by other users will not be reflected in the record set. Supports paging, recordset, and bookmark 2. dynamic cursors are the most powerful, but consume the most resources. The added or deleted records modified by the user on the record description will be reflected in the record set. Supports full-featured browsing. 3. The static cursor is only a snapshot of the data. The changes, additions, or deletions to the record statement by the user will not be reflected in the record set. Supports moving forward or backwardParameter B is the lock type of the record set, and its value is: 1. Lock type. The default value is read-only and cannot be modified. 2. Lock the record immediately when editing. The safest way is 3. the record set is locked only when the update method is called. Other operations can still modify, insert, or delete the current record. 4. The record will not be locked during editing, and modification, insertion, and deletion are completed in batch processing mode. |