摘要:
public class Qsort{ //使key后面的数组元素大于key,前面的元素小于key,最后返回key的下标 public static int cen(int a[],int start,int end) { int key; key=a[start]; while(start<end 阅读全文
摘要:
-- mysql 手工锁表 show VARIABLES like '%autocommit%'; --关闭自动提交 set @@autocommit = 0; -- 行锁 SELECT * from users where name = '17' for UPDATE; -- 提交 释放锁 COM 阅读全文
摘要:
记录一个java操作mysql数据库出现死锁问题; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get loc 阅读全文