學習目的
以前我們在ASP中不管是添加還是刪除記錄或者用SQL語句加上EXECUTE()或者就是直接用RECORDSET的NEW
string strConnection=
strConnection+=Server
OleDbConnection objConnection=new OleDbConnection(strConnection);
OleDbCommand objCommand = new OleDbCommand(
objConnection
OleDbDataReader objDataReader=objCommand
dim objConnection as OleDbConnection
dim objCommand as OleDbCommand
objConnection=new OleDbConnection(Provider=Microsoft
objCommand=new OleDbCommand(
objConnection
objDataReader=objCommand
下面再舉例子說明一下SQL語句(ACCESS)
添加記錄
o 表名 (字段
刪除記錄
修改記錄
需要特別注意
今天就說到這裡了
From:http://tw.wingwit.com/Article/program/net/201311/14720.html