摘要:
use db_2012 --声明局部变量,并为它赋值 declare @someName nchar(10) select @someName = Name from tb_Student where Spe = '会计学' print @someName --使用SET为变量赋值 declare 阅读全文
摘要:
阅读全文
摘要:
CREATE DATABASE StepSample GO USE StepSample GO /* Table: StateRegion */ CREATE TABLE StateRegion ( ID bigint PRIMARY KEY IDENTITY(1,1), FullName varc 阅读全文
摘要:
--select iFabricOrder, iPackageOrder,tPackageTime into #t1 from dbo.mmInDtl where sOrderNo = 'MLS_J210409M' and tPackageTime is not null declare @i in 阅读全文
摘要:
use test; create table T_Person ( FName varchar(20), FAge int ) create table T_Studnet ( FNumber varchar(20) not null, FName varchar(20) not null, FAg 阅读全文
摘要:
static void Main(string[] args) { //这个两上便利类,可以读写文本文件 using (StreamWriter writer = new StreamWriter(@"c:\exercise\abc.txt",true)) { writer.WriteLine("这 阅读全文
摘要:
1、 关系R和S交操作对应的SQL语句: Select * from R INTERSECT Select * from S 或 Select * from R where sname in(select sname from S) 2、 差操作对应的SQL语句: Select * from R E 阅读全文
摘要:
2020/8/30 1、给字符串变量赋值时,如果字面值包含引号,需要使用转义序列,例如: myString = “\”myInteger\” is “; 又如\n是换行,\\则输出一个\。 2、可以使用using语句为名称空间提供一个别名:例如 using LT = LevelTwo; 3、可以使用 阅读全文
摘要:
1 可以在main函数中插入以下代码在项目中插入基于服务的数据库 string dataDir = AppDomain.CurrentDomain.BaseDirectory; if (dataDir.EndsWith(@"\bin\Debug\") || dataDir.EndsWith(@"\b 阅读全文
摘要:
1 delete from table清空表中的数据, 还可以加where删除条件内的数据. 2 like 与通配符搭配使用, _ 下划线代表一个字符; % 代表0个或任意多个字符. 3 null 前面需要加is 例如 select * from stu where name is null 4 常 阅读全文