Pregunta de entrevista de Ant Group

How to implement locks in database queries?