直接用戶queryWithParams方法執(zhí)行添加sql就可以了,如果是postgresql需要在sql語(yǔ)句最后加上returning id,其他數(shù)據(jù)庫(kù)沒(méi)試過(guò)