摘要:
class A { public int num = 3; public void m1(B b) { b.m2(this); } } class B { public void m2(A a) { Console.WriteLine(a.num); } } class Test { public 閱讀全文
摘要:
1、方法重寫 class Parent { public void m1() { m2(); } public virtual void m2() { Console.WriteLine("I am Parent."); } } class Child : Parent { public overr 閱讀全文
摘要:
1、 if 參數(shù) = 值1 begin 執(zhí)行代碼1 end else if 參數(shù) = 值1 begin 執(zhí)行代碼2 end else begin 執(zhí)行代碼3 end 2、goto 標(biāo)簽 3、 declare @busno varchar(10) = '0001' -- = 'ALL' -- = '' 閱讀全文
摘要:
數(shù)據(jù)遷移:把舊數(shù)據(jù)庫中的所有用戶表數(shù)據(jù)插入到新庫存中 --新數(shù)據(jù)庫為:hydee --舊數(shù)據(jù)庫為:hdyee_old use hydee; go set nocount on SET QUOTED_IDENTIFIER OFF declare @sql nvarchar(max) declare @ 閱讀全文
摘要:
詳細(xì)內(nèi)容查看:https://blog.csdn.net/weixin_43347659/article/details/120829241 查詢某個表的主鍵名稱: select c.name from sys.indexes i join sys.index_columns ic on i.obj 閱讀全文
摘要:
一、對于p_get_usertable中的語句: 1、獲取所有用戶表(并且架構(gòu)為dbo。感覺可以不要該限制)的表名: select a.name from sysobjects a,sysusers b where a.xtype = 'u' and b.uid = a.uid and b.name 閱讀全文
摘要:
USE [……] GO /****** Object: StoredProcedure [dbo].[p_init_busno] Script Date: 08/18/2022 16:14:53 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER O 閱讀全文