【文件属性】:
文件名称:删除数据记录-c#连接sqlserver数据库使用示例说明
文件大小:917KB
文件格式:PPT
更新时间:2021-04-25 22:11:42
sqlserver
删除数据记录
使用Command对象的ExecuteNonQuery()方法来实现删除数据操作,用SQL的Delete语句来设定具体的要删除的记录。
下面的程序实现了在Northwind数据库中的Student表中删除指定的记录。
程序清单如下:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace ADONETDeleteQuery
{