It works for select , update ,delete and insert statements.