Hi Leadman,
For selecting data out your database with a SQL-query you don't have to lock anything to get the data. You can just read out of the table.
When you lock a record in a table, you say I'm at THIS moment editing this record, so knowone may edit the record from now on, until I release the lock, and I tell the database that other people may edit (I mean modify) the record, because I've made the modifications.
When a record is locked, everyone can read the data in the record, but the can't delete the record or make modifications to it. This can only be done by the one who has the lock.
BW the sql-statements delete, insert, update are taking care by themself with record locks.
I hope this cleared the definition lock,
Charl