Posted on: 10/3/2015 5:30:20 AM | Views : 956

I have which stored Country Name. But instead of that, I want to store Country ID.
Here is my code:-
if (!string.IsNullOrEmpty(mkey)) { insertUpdateQuery = "UPDATE B_Order_new SET ShipName = :ShipName, ShipCity = :ShipCity, ShipAddress = :ShipAddress, " + "ShipCountry = :ShipCountry, OrderDate = :OrderDate, Sent = :Sent where MKEY = :MKEY"; } else { insertUpdateQuery = "INSERT INTO B_Order_new (MKEY, ShipName, ShipCity, ShipAddress, ShipCountry, OrderDate, Sent) " + "VALUES(:MKEY, :ShipName, :ShipCity, :ShipAddress, :ShipCountry, :OrderDate, :Sent)"; } OracleCommand cmd = new OracleCommand(insertUpdateQuery, myConn); var orderedOn = DateTime.ParseExact(orderDate, "dd/MM/yyyy", ...

Go to the complete details ...