日期:2014-05-18  浏览次数:20945 次

DataTable.Select("EGT_ID="+egt_id+" and REF_NO="+ref_no+"","REF_NO DESC")有什么问题?
如题。
DataTable.Select()中用 and 怎么查?
我那样有什么问题啊?

------解决方案--------------------
DataTable.Select("EGT_ID=" + egt_id + " and REF_NO=" + ref_no,"REF_NO DESC");
------解决方案--------------------
如果是字符类型,需要加单引号,如果字符里有单引号,要把这个单引号变成2个