update 不要使用and银酬,要用逗號隔開 update tablename set id=? and another_col=? 這個句子不會拋異常,但是會出現(xiàn)不能更新的情況矫付。 不要用a<x<b,要用x between a and b 錯誤的寫法不會拋異常,但是選出的結(jié)果明顯是錯誤的。