Page 1 of 1

Can we use LOCK TABLE on a view?

Posted: Mon Jun 09, 2014 5:35 pm
by Ankit Gupta
Hi,

Can we use LOCK TABLE on a view? I think no, but is it correct? Please help.

Re: Can we use LOCK TABLE on a view?

Posted: Tue Jun 10, 2014 5:18 pm
by Anuj Dhawan
Hi Ankit,

No, you can not. VIEWs are imaginary entities, there is no physical existence of them. If you want to lock a view, you have to issue the lock on the underlying tables.