1.获取连接
SqlConnection con = SqlConnect.getConn();
2.绑定SqlConnection对象
SqlCommand command = con.CreateCommand();
3.绑定SQL语句
String deleteStr = "delete from WorkingLine where StationName=@STATIONNAME";
command.CommandText = deleteStr;
4.绑定参数
con.Open();
command.Parameters.AddWithValue("@STATIONNAME", name);
5.执行SQL语句
command.ExecuteNonQuery();