摘要:
hasQueuedPredecessors()解析 判断队列是否有等待资源的线程 public final boolean hasQueuedPredecessors() { //读取尾节点 Node t = tail; //读取头节点 Node h = head; //s是首节点h的后继节点 No 阅读全文
摘要:
You can't specify target table '表名' for update in FROM clause (来源) 翻译为:不能先select出同一表中的某些值,再update这个表(在同一语句中) 解决办法:将SELECT出的结果再通过中间表SELECT一遍 UPDATE res 阅读全文