shadedecho
Programmer
Ok, thread "A" issues a "LOCK TABLES `mytable`" command, and then starts doing its thing... now, thread "B" wants to read from `mytable` using a select... if that command is issued, mysql will cause that statement to WAIT until the table is UNLOCK'd before executing, which is good.
Is there a way to SHOW TABLE STATUS, or DESCRIBE it, or something like that, to find out (BEFORE trying to read it) if it is locked? like, if your script could write/read from another table if this one was being used, etc. is there a way to determine that using SQL without having to wait for the LOCK to be undone?
Is there a way to SHOW TABLE STATUS, or DESCRIBE it, or something like that, to find out (BEFORE trying to read it) if it is locked? like, if your script could write/read from another table if this one was being used, etc. is there a way to determine that using SQL without having to wait for the LOCK to be undone?