03 2018 档案
摘要:Winners see opportunities. Losers see. Winners see possibilities. Losers see problems. Winners see the gain. Losers see the pain. You can be a winner
阅读全文
摘要:先创建一个procedure 当输入的值不在0-100之间时会报出异常 测试一下,调用这个存储过程 参数用-1 执行后会提示异常 然后我们输入一个合法的数 无异常,返回结果
阅读全文
摘要:create proc score_result @courseName varchar(20) --参数 as declare --定义变量@courseNo int, @testTime1 datetime, @avg int begin --方法开始 ...
阅读全文
摘要:先创建一个有默认值的存储过程 该存储过程有2个参数 ,其中@score默认值为60 调用这个存储过程的放法及说明如下
阅读全文
摘要:错误信息 SQL Server阻止了对组件‘xp_cmdshell’的过程‘sys.xp_cmdshell’的访问。因为此组件已作为此服务嚣安全配置的一部分而被关闭。系统管理员可以通过使用sp_configure启用‘xp_cmdshell’。有关启用‘xp_cmdshell’的详细信息,请参阅SQ
阅读全文
摘要:1 --SQL server数据库系统常用的存储过程 2 exec sp_databases --能看到所有具有权限的数据库名,大小和备注 3 exec sp_helpdb --数据库名,大小,管理员,创建时间状态等 4 exec sp_rename test1,test2--把test1数据库改名为test2 5 exec sp_tables ...
阅读全文
摘要:--1.主键约束问题 create table 学生表( 学号 int primary key, 姓名 varchar(10)); insert into 学生表 values(null,'a');问题(无法执行)原因(主键不能为空) insert into 学生表 values(1,'a');in
阅读全文
摘要:Set与select的区别 Set select 同时多个变量赋值 不支持 支持 表达式返回多个值时 出错 将返回的最后一个值赋给变量 表达式未返回值 变量被null赋值 变量保持原始值
阅读全文
摘要:select convert(varchar(50),getdate(),101)--月/日/年 select convert(varchar(50),getdate(),102)--年.月.日 (常用) select convert(varchar(50),getdate(),103)--日/月/年 select convert(varchar(50),getdate(),104)--日...
阅读全文
摘要:Poor attitudes lead to poor communication. Poor communication leads to poor service. Poor service leads to no customers. No customers leads to no comp
阅读全文
摘要:首先看Body部分代码。 思路: 制作一个非常长的广告条(“#TvScreen“)我们设置宽度为99999,将全部广告横向排列在其中,然后使用外框(”#Tv“)遮盖住多余的部分 遮盖前 给“#Tv“添加overflow:hidden属性遮盖后; 点击下方圆圈时会根据圆圈内的值计算出广告条需要移动的位
阅读全文
摘要:Html中解决点击 a 标签刷新的问题 我们可以在 <a href=""></a>中,将地址属性href设置为“#” 例如 这样再点击就不会刷新页面了
阅读全文
摘要:Asp.net 内置对象 1.Session当客户第一次请求网页,session创建。当客户最后一次请求页面,一段时间后,session销毁。默认30分钟。 一般存用户信息,即登陆成功后,在session中存储用户信息。在注销时清空。每个用户使用唯一的Session 2.application: 应
阅读全文
摘要:em详解 em可以理解成“倍”。 em会以父级元素中所设置的字体像素值为基准值进行成倍放大; 字体大小=(父级元素中的字体像素 * em的值) 例: 网页部分代码如下: 1.我现在没有在父级元素中设置任何字体像素值,而直接在<h2>标签中设置了字体大小为“3em”。 此时将使用浏览器的默认设置(一般
阅读全文
摘要:【1】 Dealing with people is like digging for gold. When you go digging for an ounce of gold, you have to move tons of dirt to get an ounce of gold. But
阅读全文
摘要:【1】 It is nice to be important, but it is more important to be nice. 【2】 What simple act of kindness could you show another person today? Decide now,
阅读全文
摘要:Today I’d like to talk about faith. With faith, you’ll go further and never be lost. Faith is free and available to all people at all times. Have fait
阅读全文
摘要:Everyone wants to be successful. Today I would like to share three simple key points of success. Number one is: Know what you are doing. Number two is
阅读全文
摘要:【1】If you want something, give it away. 【2】When a farmer wants more seeds, he takes his seeds and gives them to the earth. When you want a smile, give
阅读全文
摘要:详解: 该数组中只有8个数字(arr.length),所以至少需要进行7遍(arr.length-1)排序。 第一遍排序需要进行7次比较(arr.length-1-i 注:此时i=0)。 第一遍比较完成后数组最末尾的值就为最大值了,所以第二遍就不再需要跟最末尾的数字比较了。 因此第二遍只需要进行6次
阅读全文

浙公网安备 33010602011771号