truncate table mytable --阻塞其他事务的insert into mytable
delete from mytable --不会阻塞其他事务的insert into mytable
delete from mytable --不会阻塞其他事务的insert into mytable
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30201626/viewspace-1813754/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30201626/viewspace-1813754/
本文探讨了在数据库操作中使用truncate table与delete from的区别。truncate table会阻塞其他事务的insert into mytable操作,而delete from则不会产生此类阻塞。
383

被折叠的 条评论
为什么被折叠?



