SqlCommand cmd = new SqlCommand(insert into tab_bill(code,sub_code,name and amount) select <pre>code,sub_code,name and amount from tab_initial where code=66 ", con); int q = cmd.ExecuteNonQuery(); I want to increment instalment_no by 1 from tab_initial(selected rows to insert)whenever this enter query will trigger from selected rows..
SqlCommand cmd = new SqlCommand(update tab_bill set instalment_no=instalment_no+1 select code,sub_code,name and amount from tab_initial where code=66;,con); int q = cmd.ExecuteNonQuery();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)