Çë¸÷λ°ïæ¸ø¸ö½âÊ͹þ¡£ ллÀ²SetInt·½·¨µÄ˵Ã÷£º Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
sql.setInt(1,2)µÄÒâ˼ÊÇÉèÖÃsqlµÄµÚÒ»¸ö²ÎÊý(µÚÒ»¸öÎʺÅÖµ)Ϊ2; up Èç¹ûÕâÀï²ÎÊý¸ÄΪsql.setInt(2,4) »òÕßʲô£¬½«»áÊä³öÊ²Ã´ÄØ£¿ ´ð£º×Ô¼ºÊÔ£¬¹À¼ÆÊÇ»á³öÏÖË÷ÒýµÄÒì³£¡£ ²»ÊÔ²»ÖªµÀ£¬Ò»ÊÔÒì³£×¼¿´µ½£¡