ORDER BY 不适用于数字,但如果我为包含字母数字或仅字符的列提供它,它工作得很好。我给出的代码是,
dbResult = dbStatement.executeQuery("SELECT Bid_Number,Vendor_Name,Vendor_Address,Amount,Tax_Percentage,Amount_Aftertax,Expected_Deliverydate,Vendor_Code FROM purchase_bid where PE_Number='"+PENumber+"' ORDER BY Amount_Aftertax ASC");
如果在我的表中我的Amount_Aftertax
列值为,
840.0
780.0
3180.0
3810.0
通过提供此代码,我将根据此顺序获得结果
3180.0
3810.0
780.0
840.0
希望回复请...提前谢谢..