freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

第9章數(shù)據(jù)庫訪問-文庫吧資料

2024-10-06 15:37本頁面
  

【正文】 按以下方式進行: ? 創(chuàng)建 Command對象 Dim As New Set =con ? 設(shè)置 CommandType屬性 ? 設(shè)置 CommandText屬性 ? 調(diào)用 Execute方法 Visual Basic程序設(shè)計教程 ? 操作數(shù)據(jù)庫一般按以下方式進行: ? 創(chuàng)建 Command對象 ? 設(shè)置 CommandType屬性 = AdCmdText ? 設(shè)置 CommandText屬性 ? 調(diào)用 Execute方法 Visual Basic程序設(shè)計教程 ? 操作數(shù)據(jù)庫一般按以下方式進行: ? 創(chuàng)建 Command對象 ? 設(shè)置 CommandType屬性 ? 設(shè)置 CommandText屬性 = delete Goods where 工號 =1201 ? 調(diào)用 Execute方法 Visual Basic程序設(shè)計教程 ? 操作數(shù)據(jù)庫一般按以下方式進行: ? 創(chuàng)建 Command對象 ? 設(shè)置 CommandType屬性 ? 設(shè)置 CommandText屬性 ? 調(diào)用 Execute方法 Visual Basic程序設(shè)計教程 利用查詢結(jié)果 ? Recordset 對象表示的是從數(shù)據(jù)庫中查詢的結(jié)果—— 記錄的集合,并支持對其中的數(shù)據(jù)進行各種操作或處理。釋放 Visual Basic程序設(shè)計教程 操作訪問數(shù)據(jù)庫 ? ADO 的 Command 對象表示對數(shù)據(jù)庫的操作命令。 ? 39。步驟如下: 1. 創(chuàng)建 Connection對象 2. 設(shè)置 ConnectionString屬性 3. 調(diào)用 Open方法 Visual Basic程序設(shè)計教程 連接到數(shù)據(jù)庫 Dim con As New Private Sub Form_Load() On Error GoTo Handle = Provider=。 Initial Catalog=Northwind。步驟如下: 1. 創(chuàng)建 Connection對象 2. 設(shè)置 ConnectionString屬性 = Provider=SQLOLEDB。步驟如下: 1. 創(chuàng)建 Connection對象 2. 設(shè)置 ConnectionString屬性 = Provider=。步驟如下: 1. 創(chuàng)建 Connection對象 2. 設(shè)置 ConnectionString屬性 3. 調(diào)用 Open方法 Visual Basic程序設(shè)計教程 連接到數(shù)據(jù)庫 ? 用 Connection對象連接到數(shù)據(jù)庫。 ? 方法是: ? 展開菜單 【 工程 】 ?【 引用 】 ; ? 在引用對話框中,找到并選擇“ Microsoft ActiveX Data Objects Library”。 3. 查詢操作的結(jié)果,由 Recordset對象表示。 2. 訪問操作數(shù)據(jù)庫。 Visual Basic程序設(shè)計教程 利用 ADO對象訪問數(shù)據(jù)庫 ? ADO基本的對象有三個,代表了訪問數(shù)據(jù)庫的三個步驟: 1. 連接數(shù)據(jù)庫。 ? 實際開發(fā)都要使用 ADO對象。 ? 對數(shù)據(jù)庫的不同訪問,其實可以共享一個數(shù)據(jù)庫連接,而不需要為每個查詢都建立一個數(shù)據(jù)庫連接。 ? DataSource:將其設(shè)置為某個數(shù)據(jù)源( ADO數(shù)據(jù)控件、或后面要介紹的 Recordset對象),即可按表格的形式顯示其中的數(shù)據(jù)。 ? AllowUpdate:設(shè)為 True,則當移動記錄指針時,對前條記錄所做的修改將會被保存。 Visual Basic程序設(shè)計教程 DataGrid 控件的主要屬性 ? AllowAddNew:設(shè)為 True時,當光標移到最后時會添加一條新記錄。當然也可以用鼠標直接點選某個字段(單元格
點擊復制文檔內(nèi)容
教學課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1