標籤:1.注釋文法:--,#2.尾碼是.sql的檔案是資料庫查詢檔案3.儲存查詢4.在資料庫裡面 列有個名字叫欄位 行有個名字叫記錄CRUD操作:create 建立(添加)read 讀取update 修改delete 刪除1、添加資料insert into Info values(‘p009‘,‘張三‘,1,‘n001‘,‘2016-8-30 12:9:8‘) ; 給特定的列添加資料insert into Info (code,name)
標籤:需要初始化的:隨機數類:初始化 執行個體化//不允許將初始化的語句放置在迴圈中//Random ran = new Random();時間值類:/初始化 執行個體化//DateTime dt = new DateTime();一維數組:執行個體化 初始化定義方式:{定義的時候,需要資料類型、長度!}1.int []aa=new int [5]; 表示數組裡面有5個字元;2.int []aa=new int []{1,2,3,4,5};3.int []aa=new int [5]{1,2,
標籤: class Test { delegate K proxy<T, K>(T t, K k); //泛型委派,注意傳回值的寫法,傳回值的類型K先於其聲明proxy<T,K>中的K,這是C#底層的事 public static void Main() { proxy<int, string> pxy = varCat; proxy<int,
標籤:using System;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1d{class CTX { public int id = 10; public string name = "rich"; public int age = 28; public CTX(int id) {
標籤:1 xml檔案 2 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Xml.Linq; 7 8 namespace ConsoleApplication8 9 {10 class Program11 {12
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Xml.Linq; 7 8 namespace ConsoleApplication8 9 {10 class Program11 {12 static void
標籤:1 代碼 1 \W檢測是否含有特殊符號 2 3 4 using System; 5 using System.Collections.Generic; 6 using System.Linq; 7 using System.Net; 8 using System.Text; 9 using System.Text.RegularExpressions;10 using System.Threading.Tasks;11 12 namespace
標籤:1 代碼 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Xml.Linq; 7 8 namespace ConsoleApplication8 9 {10 11 class Program12 {13 static