資源簡介
KTV項目使用C#配合SQL數據庫,完成里面附帶sql數據庫和一個C#項目,和ppt,包你滿意*-*!!!!!
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Data?;
using?System.Data.SqlClient?;
using?System.Windows.Forms;
namespace?KTV
{
????class?DBHelp
????{
????????///?
????????///?初始化數據庫鏈接
????????///?
????????//private?static?void?InitConnection()
????????//{
????????public?static?String?coon?=?“Data?Source=127.0.0.1;Initial?Catalog=KTV;User?ID=sa;pwd=zsm20001017“;
????????public?static?SqlConnection?con?=?new?SqlConnection(coon);
????????//}
????????///?
????????///?
????????///?
????????///?
????????public?static?int?ExecuteNonQuery(string?sqlStr)
????????{
????????????int?num?=?0;
????????????try
????????????{
????????????????con.Open();
????????????????SqlCommand?com?=?new?SqlCommand(sqlStr?con);
????????????????num?=?com.ExecuteNonQuery();
????????????}
????????????catch(Exception?ex)
????????????{
????????????????MessageBox?.Show?(ex.Message);
????????????}
????????????finally?{
????????????????con.Close();
????????????}
????????????return?num;
????????}
????????///?
????????///?查
????????///?
????????///?
????????///?
????????public?static?DataSet?executeQuery(String?sql)
????????{
????????????DataSet?data?=?new?DataSet();
????????????try
????????????{
????????????????SqlDataAdapter?adapter?=?new?SqlDataAdapter(sqlcon?);
????????????????adapter.Fill(data);
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????MessageBox.Show(ex.Message);
????????????}
????????????finally
????????????{
????????????????con.Close();
????????????}
????????????return?data;
????????}
????????///?
????????///?更新人氣
????????///?
????????///?
????????///?
????????public?static?void??Count(string?song)
????????{
????????????string?sql?=?““;
????????????sql?=?String.Format(“?update?Song_Info?set?Song_play_count?=?Song_play_count?+?1?where?Song_name??=?‘{0}‘“?song);
????????????int?num?=?ExecuteNonQuery(?sql?);
????????}
?????????????
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.????103424??2018-05-21?10:15??KTV項目2\KTV項目\KTV\.vs\KTV\v14\.suo
?????文件??????53760??2017-06-07?17:25??KTV項目2\KTV項目\KTV\KTV\bin\Debug\AxInterop.WMPLib.dll
?????文件?????331264??2018-03-15?08:59??KTV項目2\KTV項目\KTV\KTV\bin\Debug\Interop.WMPLib.dll
?????文件???27672064??2018-05-21?10:09??KTV項目2\KTV項目\KTV\KTV\bin\Debug\KTV.exe
?????文件?????275968??2018-05-21?10:09??KTV項目2\KTV項目\KTV\KTV\bin\Debug\KTV.pdb
?????文件??????22696??2018-05-21?10:03??KTV項目2\KTV項目\KTV\KTV\bin\Debug\KTV.vshost.exe
?????文件????????490??2016-03-09?13:48??KTV項目2\KTV項目\KTV\KTV\bin\Debug\KTV.vshost.exe.manifest
?????文件???????2249??2018-03-20?09:48??KTV項目2\KTV項目\KTV\KTV\DBHelp.cs
?????文件????????453??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_About.cs
?????文件???????4429??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_About.Designer.cs
?????文件?????411715??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_About.resx
?????文件???????5190??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_Admin.cs
?????文件??????13001??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_Admin.Designer.cs
?????文件?????412502??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_Admin.resx
?????文件???????2159??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_ChangePwd.cs
?????文件???????7602??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_ChangePwd.Designer.cs
?????文件???????5817??2018-03-14?09:15??KTV項目2\KTV項目\KTV\KTV\Frm_ChangePwd.resx
?????文件??????10761??2018-05-21?10:15??KTV項目2\KTV項目\KTV\KTV\Frm_KTVMain.cs
?????文件??????32538??2018-03-19?09:28??KTV項目2\KTV項目\KTV\KTV\Frm_KTVMain.designer.cs
?????文件?????412973??2018-03-19?10:44??KTV項目2\KTV項目\KTV\KTV\Frm_KTVMain.resx
?????文件???????4827??2018-03-13?15:28??KTV項目2\KTV項目\KTV\KTV\Frm_KTVOrderedList.cs
?????文件??????13729??2018-03-13?15:28??KTV項目2\KTV項目\KTV\KTV\Frm_KTVOrderedList.designer.cs
?????文件???????5817??2018-03-13?15:28??KTV項目2\KTV項目\KTV\KTV\Frm_KTVOrderedList.resx
?????文件???????6115??2018-03-13?15:31??KTV項目2\KTV項目\KTV\KTV\Frm_KTVpinyin.cs
?????文件??????20642??2018-03-12?10:47??KTV項目2\KTV項目\KTV\KTV\Frm_KTVpinyin.designer.cs
?????文件???????6553??2018-03-12?10:47??KTV項目2\KTV項目\KTV\KTV\Frm_KTVpinyin.resx
?????文件???????2540??2018-03-13?15:11??KTV項目2\KTV項目\KTV\KTV\Frm_KTVPlay.cs
?????文件???????3387??2018-03-13?15:11??KTV項目2\KTV項目\KTV\KTV\Frm_KTVPlay.Designer.cs
?????文件???????6698??2018-03-13?15:11??KTV項目2\KTV項目\KTV\KTV\Frm_KTVPlay.resx
?????文件???????1026??2018-03-13?20:26??KTV項目2\KTV項目\KTV\KTV\Frm_KTVServer.cs
............此處省略309個文件信息
- 上一篇:Unity 3D《魔獸》動作類回合制游戲源碼
- 下一篇:C# 三維點數據顯示
評論
共有 條評論