06 2021 档案
摘要: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 常
阅读全文
摘要:https://github-releases.githubusercontent.com/53698446/883bc5d6-9260-11e7-90b7-f13aa92c3f6d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJ
阅读全文
摘要:1 select * from sys.master_files 可以快速获取SQL Server实例中全部数据库的清单 2 创建数据库 use master; create database SBSChp4TSQL on primary ( name = 'SBSChp4TSQL1', filen
阅读全文