I am using oracle as my back end and i write insert query as follows, i don\'t know is it correct way are not,
insert into Emp_table (SL_NO,empane,empid,sala
Assuming salary amount is 20000, You can try this code:
var commandText = "insert into Emp_table (SL_NO,empane,empid,salaray) values(:SL_NO,:empane,:empid,:salary)";
using (OracleConnection connection = new OracleConnection(connectionString))
using (OracleCommand command = new OracleCommand(commandText, connection))
{
command.Parameters.AddWithValue("SL_NO", 1);
command.Parameters.AddWithValue("empane", "sree");
command.Parameters.AddWithValue("empid", 1002);
command.Parameters.AddWithValue("salaray", 20000);
command.Connection.Open();
command.ExecuteNonQuery();
command.Connection.Close();
}