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)";
取了字段中的最大值;
取字段中的最大值
时间: 2024-10-20 17:03:40
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)";
取了字段中的最大值;
取字段中的最大值