取字段中的最大值

 string strSQLWhereHYQX = @"zth = '" + modelZD.ZTH.Trim()
                        + @"' and sysid =(select max(sysid) from T_ZDZTXXB where zth = '"
                        + modelZD.ZTH.Trim()
                        + @"' and JD is not null and WD is not null)";
 
取了字段中的最大值;
posted @ 2014-07-28 21:33  爱神之剑  阅读(142)  评论(0编辑  收藏  举报