㈠ java杩炴帴oracle鏁版嵁搴搄ava.sql.SQLException: 镞犳晥镄勫垪绱㈠紩闂棰
杩椤拰鐢ㄤ粈涔堢敤鎴锋棤鍏筹纴鍙瑕佽兘杩炰笂鏁版嵁搴撱佸苟涓斾娇鐢ㄧ殑鐢ㄦ埛瀵硅ヨ〃链夋彃鍏ユ潈闄愶纴灏辨病闂棰樸傜幇鍦ㄥ嚭鐜扮殑钬沧棤鏁堢殑鍒楃储寮旷殑寮傚父钬濓纴鏄鎸囧湪璇鍙pstmt.setString(2,str2);涓锛屽垪绱㈠紩2鏄镞犳晥镄勶纴锲犱负sql璇鍙ヤ腑鍙链変竴涓闂鍙枫侾reparedStatement 瀵硅薄涓镄
setString鏂规硶镄勭涓涓鍙傛暟鏄鍒楃储寮曪纴杩欎釜鍙傛暟镄勫彇鍊艰寖锲存槸鍜宻ql璇鍙ヤ腑镄勯梾鍙锋暟閲忓瑰簲镄勶纴sql璇鍙ヤ腑链塶涓闂鍙凤纴setString鏂规硶镄勭涓涓鍙傛暟灏卞簲璇ヤ粠1鍒皀锛屽傛灉涓嶅湪杩欎釜锣冨洿涔嫔唴锛屽氨浼氩嚭鍒楃储寮曟棤鏁堢殑寮傚父銆