原创 SQL SERVER簡單的增,刪,查,改 語句 多表關聯查詢 (去掉關鍵列查詢)

insert into tb_UserInfo values('趙六',3,13512458679); --增加語句-- update tb_UserInfo set name='劉德華'where id=3; --修改語句--

原创 左,右,內連接 統計記錄數 子查詢 聚合函數 查詢產品分類

--1)內連接,必須保證的是內連接的數據一定相等的纔會查詢出來。 select 用戶表.用戶ID, 用戶表.用戶名稱, 角色表.角色名稱 from 用戶表 inner join 角色表 on 用戶表.角色ID = 角色表

原创 sql server 創建table表 及添加各種約束 查看約束 刪除約束 新增表的字段 規則及規則使用方法及應用到表中 時間函數的類型

use Test1 go create table tb_person ( id int identity(1,1) primary key not null, --要把該列設置爲主鍵列就用 primary key -- name var

原创 http的內置對象 Session Application Global.aspx文件

 http請求和響應是無狀態的。 客戶端向服務器發出請求,對於服務器來講, 代表客戶端的請求對象是HttpRequest.. //HttpRequest對象表示的是客戶端對於服務器的請求,那麼把客戶端的請求封裝在HttpReque

原创 存儲過程 視圖 觸發器 分頁

存儲過程 存儲過程(Stored (Procedure 這是語法的關鍵字)) 是一組爲了完成特定功能的SQL, 語句集,經編譯後存儲在數據庫, 用戶通過制定存儲過程的名字並給出參數(如果該存儲過程帶有參數)來執行它。

原创 spell拼音碼的寫法及語句

<pre name="code" class="html">namespace DrugSaleSystem.Components { using System; using System.Text; publi

原创 DAL層,新增一條分頁查詢語句 DepartmentName

/// <summary> /// 獲取一個分頁列表 /// </summary> /// <param name="ShiftStatisticsCode">班次號</pa

原创 表達式與運算符

表 達 式 using System; using System.Collections.Generic; using System.Linq; using System.Text;

原创 三層及winform前臺頁面 XmlHelper.cs Sqlhelper.cs AbstractSqlHelper.cs Com.cs 分頁控件的後臺代碼

  using System; namespace TSMS.Model { /// <summary> /// 描述員工的在職狀態 /// </summary> [Serializable] public partia

原创 界面對應字段,綁定數據到gridview 顯示 及刪除功能 窗體事件 分頁及鍵

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 Socket通信原理

using System; using System.Collections.Generic; using System.Linq; using System.Text; //添加Socket類 using System.Net; usi

原创 增加 修改,裝載狀態(父品類)

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; u

原创 綁定數據顯示到 GridView

public void DrugCategoryInit() { dgvDrugCategoryList.Rows.Clear(); int DrugCategoryCod

原创 新增和修改存儲過程語句

CREATE PROCEDURE [dbo].[RivalPriceTable_Get] 新增 ALTER PROCEDURE [dbo].[RivalPriceTable_Get] 修改

原创 表裏無此字段,但是存儲過程得新增一條字段,DepartmentName

USE [DrugSaleSystem] GO /****** Object: StoredProcedure [dbo].[ShiftStatistics_Get] Script Date: 11/23/2016 16:38:5