开发者

Web service method using update datebase in asp.net

开发者 https://www.devze.com 2022-12-11 19:44 出处:网络
how to use update query in web service开发者_运维技巧 wethodYour web service method would call an update query just like any other method.

how to use update query in web service开发者_运维技巧 wethod


Your web service method would call an update query just like any other method.

using(SqlConnection conn = new SqlConnection(connectionString))
{
    conn.Open();

    SqlCommand command = new SqlCommand("update field1 from Table where rowId = 7", conn);

    command.ExecuteNonQuery();
}
0

精彩评论

暂无评论...
验证码 换一张
取 消