黑馬程式設計師 資料庫操作方法

2021-06-05 21:10:32 字數 1093 閱讀 4368

----------------------

windows phone 7手機開發、

.net培訓、期待與您交流! ----------------------

資料庫操作都在這裡了,呵呵,用的多了自然就會了

using system;

using system.collections.generic;

using system.linq;

using system.web;

using system.data;

using system.data.sql;

using system.data.sqlclient;

///

///class1 的摘要說明

///

public class database

private static sqlconnection con = new sqlconnection();

private static sqlcommand cmd = new sqlcommand();

public static bool getconnection()

catch (exception ee)

}public static int execmd(string str)

catch (exception ee)

}public static int exesqldatareader(string str)

catch (exception ee)

}public static string exescalar(string str)

catch (exception ee)

}public static void closeconnection()

public static sqldataadapter getdata(string str)

public static datatable getdatatable(string str)

}---------------------- windows phone 7手機開發、.net培訓、期待與您交流! ----------------------詳細請檢視:

黑馬程式設計師 資料庫的基本操作

windows phone 7手機開發 net培訓 今天主要學習了資料庫的基本操作。從建表開始,我們開始了處理資料集的旅行。資料庫,顧名思義就是乙個處理資料的倉庫,那麼資料的儲存肯定是要求有規律的。以乙個現實中的事情為例,我們要把學生的資訊儲存在其中,並且要求能對這些資料進行操作,那麼我們就需要用到...

黑馬程式設計師 資料庫概述

windows phone 7手機開發 net培訓 期待與您交流!用自定義檔案格式儲存資料的劣勢 dbms database management system,資料庫管理系統 和資料庫 平時談到 資料庫 可能有兩種含義 mssqlserver oracle等某種 dbms 存放一堆資料表的乙個分類...

黑馬程式設計師 C 字串各種操作方法

1.c 字串分割 2.c 字串擷取 public static string getfirststring string stringtosub,int length else if nlength length if iscut return sb.tostring else return sb....