update table set field1='R', field2='" + DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss") + "', field3 = '" + util.CleanStringInput(value1) + "' where field1 = 'P' and field3 = '" + value2 + "' and field4 = (select max(field5) from table2 where field6='" + value2 + "')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)