08 2015 档案
摘要:字画 笔墨风云 初唐四杰 颜真卿 欧阳询 柳公权 赵孟頫 《勤礼碑》 《多宝塔》 《九成宫》 《脚气帖》 《玄秘塔》 《金刚经...
阅读全文
摘要:简介 超文本标记语言(HyperText Markup Language,简称为HTML)是为「网页创建和其它可在网页浏览器中看到的信息」设计的一种标记语言。HTML被用来结构化信息——例如标题、段落和列表等等,也可用来在一定程度上描述文档的外观和语义。由蒂姆·伯纳斯-李Tim Berners-Le...
阅读全文
摘要:--关联语句 内关联 select t1,t2 from test1,test2 where test1.1=test.2.1 select ti,t2 from test1 join test2 on test1.1=test.2.1 --外关联 左关联 右关联 全关联 se...
阅读全文
摘要:分类:DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)首先,简要介绍基础语句:1、说明:创建数据库 CREATE D...
阅读全文
摘要:关系数据库的几种设计范式介绍1、第一范式(1NF) 在任何一个关系数据库中,第一范式(1NF)是对关系模式的基本要求,不满足第一范式(1NF)的数据库就不是关系数据库。 所谓第一范式(1NF)是指数据库表的每一列都是不可分割的基本数据项,同一列中不能有多个值,即实体中的某个属性不能有多个值或者不能有...
阅读全文
摘要:触发器create trigger tr_banj_inserton t_banjafter insertasbegindeclare @log varchar(50)select @log='插入的记录:banj_mc=' +banj_mc+'banzr='+banzr from inserted...
阅读全文
摘要:1 table1结构如下 2 id int 3 name varchar(50) 4 -------------------------- 5 declare @id int 6 declare @name varchar(50) 7 declare cursor1 cursor for ...
阅读全文
摘要:存储过程和自定义函数的区别Difference between Procedure and User Defined Function首先来看一下存储过程和自定义函数的概念一、 什么是存储过程? 存储过程可以使得对数据库的管理、以及显示关于数据库及其用户信息的工作容易得多。存储过程是 SQL 语句和...
阅读全文
摘要:declare @a int,@b int,@c intset @a = (select top 1 a from Table_1 )set @b = (select top 1 b from Table_1 )set @c = (select top 1 c from Table_1 )if(@a...
阅读全文
摘要:视图是对数据(一种元数据类型)的一种描述。当创建了一个典型视图时,通过封装一个 SELECT 语句(定义一个结果集来表示为虚拟表)来定义元数据。当在另一个查询的 FROM 子句中引用视图时,将从系统目录检索该元数据,并替代该视图的引用扩展元数据。视图扩展之后,SQL Server 查询优化器会为执...
阅读全文
摘要:--数值函数--上线值 ,整数不变,整数部分加1select CEILING(6.5)--下线值,整数不变,小数去掉select floor (6.5)--指数幂select POWER(3,2)--34: 整数 56:小数 1 四舍五入保留的位数SELECT ROUND(34.56,1)--...
阅读全文
摘要:--定义变量 声明 变量名 数据类型 varchar默认长度为1--char 当字符不够时 用空格代替declare @a char(10)--字符串用单引号set @a ='abcdef'select @a ='qqqqqqq'--输出print(@a)--输出的以表格方式 (常用)select...
阅读全文
摘要:1、 查询Student表中的所有记录的Sname、Ssex和Class列。2、 查询教师所有的单位即不重复的Depart列。3、 查询Student表的所有记录。4、 查询Score表中成绩在60到80之间的所有记录。5、 查询Score表中成绩为85,86或88的记录。6、 查询Student表...
阅读全文
摘要:sql server时间戳timestamp在SQL Server中联机丛书是这样说的:SQL Server timestamp 数据类型与时间和日期无关。SQL Server timestamp 是二进制数字,它表明数据库中数据修改发生的相对顺序。实现 timestamp 数据类型最初是为了支持 ...
阅读全文
摘要:GUID介绍GUID(Global unique identifier)全局唯一标识符,它是由网卡上的标识数字(每个网卡都有唯一的标识号)以及 CPU 时钟的唯一数字生成的的一个 16 字节的二进制值。GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其...
阅读全文
摘要:在20世纪60年代,网状数据库系统(如CODASYL)和分层数据库系统(如IMS TM)是用于自动化银行业务、记帐和订单处理系统的一流技术,这些系统是由于商业大型计算机的引入才启用的。而SQL是在70年代创建的一种基于关系数据库管理系统(Relational Database Management ...
阅读全文
摘要:varchar在SQL Server中是采用单字节来存储数据的,nvarchar是使用Unico来存储数据的.中文字符存储到SQL Server中会保存为两个字节(一般采用Unico编码),英文字符保存到数据库中,如果字段的类型为varchar,则只会占用一个字节,而如果字段 的类型为nvarcha...
阅读全文
摘要:create table [[V.]HANKE.].MADE IN HOME (xuliehao int primary key, name varchar(20)not null, jiage float,type varchar (20))go1 建立 数据库 v 所有者 HANKE 表名...
阅读全文
摘要:create database von primary(name = v,filename='D:\v.mdf',size=3mb,maxsize=10mb,filegrowth=2mb)log on (name = v_log,filename='D:\v_log.ldf',size=3mb,ma...
阅读全文
摘要:1.MySQL MySQL是最受欢迎的开源SQL数据库管理系统,它由 MySQL AB开发、发布和支持。MySQL AB是一家基于MySQL开发人员的商业公司,它是一家使用了一种成功的商业模式来结合开源价值和方法论的第二代开源公司。MySQL是MySQL AB的注册商标。 MySQL是一个快...
阅读全文
摘要:使用static修饰的静态方法是属于整个类的类方法,它在内存中的代码段会随类的定义而被分配和装载;而非静态方法是属于具体对象的方法,当这个对 象创建时,在对象的内存中会拥有此方法的专用代码段。在引用静态方法时,可以使用对象名加前缀,也可以使用类名加前缀。eg. classA 实例化了一个对象obje...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace arrayLIST练习{ class Program ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 冒泡12{ class Program { static void W (int[] u...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace 结构体__练习{ class Program { ...
阅读全文
摘要:system.collection 命名空间,接口和类 对象(列表。列队。位数组。哈希表和字典) arraylist 用到queue队列集合,stack栈集合,哈希表集合arrylist arry 的异同都实现ilist,icollection,ienumerable接口。索引起始位置一样...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleApplication31{ class Prog...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 冒泡排序{ class Program { static void bubble_sort...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace 验证码2{ class Program { ...
阅读全文
摘要:一、C++中不能使用random()函数random函数不是ANSI C标准,不能在gcc,vc等编译器下编译通过。但在C语言中int random(num)可以这样使用,它返回的是0至num-1的一个随机数。 可改用C++下的rand函数来实现。1、C++标准函数库提供一随机数生成器rand,返回...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 生日{ class Program { static void Main(string[]...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 字符串1{ class Program { static void Main(string...
阅读全文
摘要:namespace 字符串去空格{ class Program { static void Main(string[] args) { string A = "";//空字符串 // A = string.Empty;/...
阅读全文
摘要:{ for (int i = 1; i 200) { Console.WriteLine("您的输入不在范围内"); } else { ...
阅读全文
摘要:for (int i = 1; i =1;i--)i的起始值是10 着次递减 for(){}嵌套放便控制行列的长短break;中断循环continue;跳过以后的代码,继续循环
阅读全文
摘要:for (int i = 1; i i; a--) // a这是个递减的 起始值是11 当i=1时 // a的值是11 输出11个空白 Console.Write(" ...
阅读全文
摘要:namespace 奇偶判断{ class Program { static void Main(string[] args) { Console.Write("请任意输入个整数:"); int A = int.Pa...
阅读全文