when operating on the database, the table is locked, the field value of the table is updated, the query is returned, and finally the table is unlocked. The sql statements executed without jdbc for
are as follows:
LOCK TABLE yh WRITE;
UPDATE yh SET value = value + 1;
SELECT value FROM yh;
UNLOCK TABLES;