當(dāng)前位置:首頁(yè)
> 數(shù)據(jù)庫(kù)插入代碼
數(shù)據(jù)庫(kù)插入代碼(數(shù)據(jù)庫(kù)怎么輸入代碼)
1、java連接數(shù)據(jù)庫(kù)時(shí),往數(shù)據(jù)庫(kù)一次添加多條數(shù)據(jù),可以在DAO層,使用executeBatch批量插入數(shù)據(jù),如下代碼conn = DBToolkitgetConnectionStatement stmt = conncreateStatement連續(xù)添加多條SQL stmtaddBatchquot...