SELECT acquires only READ/SHARED lock but if existing table has even a single record/block/entire table locked due to already executed UPDATE/DELETE/INSERT and neither committed nor rolled back, your new table creating select has to wait till lock is released by commit/rollback or explicit killing of lock/session.
Main Topics
Browse All Topics





by: gagaliyaPosted on 2009-03-18 at 11:09:01ID: 23921692
want to add new_table does not exist, select into sql creates the table.