經過jdbc鏈接數據庫,批量執行多條SQL語句

方案一 Statement ps=conn.createStatement(); ps.addBatch("update user set money=money-100 where name='張三'"); ps.addBatch("update user set money=money+100 where name='李四'"); ps.addBatch("update temp set co
相關文章
相關標籤/搜索