GetCount

所属分类:其他
开发工具:Others
文件大小:13KB
下载次数:0
上传日期:2021-04-15 15:06:48
上 传 者zunguanchaold4zungua
说明:  C statistic a value, the number of occurrences of database program, specific to this case, the query is the number of students in age of 25, the following is the core of database query code: string P_Str_ConnectionStr = the string. Format (/ / create a database connection string @ "server = WIN - GI7E47AND9RLS;The database = db_TomeTwo;Uid = sa;The PWD = ");String P_Str_SqlStr = the string. Format (/ / create an SQL query string "SELECT COUNT (*) AS the number of students FROM tb_Student WHERE Age = {0}", Age);SqlDataAdapter P_SqlDataAdapter = new SqlDataAdapter (/ / create the data adapter P_Str_SqlStr P_Str_ConnectionStr);The DataTable P_dt = new DataTable ();/ / create the data table P_SqlDataAdapter. The Fill (P_dt);/ / return P_dt populate the data table;/ / return data table

文件列表:
srcfans.com\GetCount\GetCount\Frm_Main.cs (2496, 2010-12-16)
srcfans.com\GetCount\GetCount\Frm_Main.Designer.cs (5380, 2010-09-02)
srcfans.com\GetCount\GetCount\Frm_Main.resx (5814, 2010-09-02)
srcfans.com\GetCount\GetCount\GetCount.csproj (3831, 2010-09-02)
srcfans.com\GetCount\GetCount\Program.cs (492, 2010-09-02)
srcfans.com\GetCount\GetCount\Properties\AssemblyInfo.cs (1348, 2010-09-02)
srcfans.com\GetCount\GetCount\Properties\Resources.Designer.cs (2866, 2010-09-02)
srcfans.com\GetCount\GetCount\Properties\Resources.resx (5612, 2010-09-02)
srcfans.com\GetCount\GetCount\Properties\Settings.Designer.cs (1093, 2010-09-02)
srcfans.com\GetCount\GetCount\Properties\Settings.settings (249, 2010-09-02)
srcfans.com\GetCount\GetCount.sln (914, 2010-09-02)
srcfans.com\GetCount\GetCount.suo (23040, 2010-12-16)
srcfans.com\GetCount\GetCount\Properties (0, 2017-04-22)
srcfans.com\GetCount\GetCount (0, 2017-04-22)
srcfans.com\GetCount (0, 2017-04-22)
srcfans.com (0, 2017-04-22)

近期下载者

相关文件


收藏者