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-12-24 03:25:48
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)";
取了字段中的最大值;
取字段中的最大值