上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: --删除所有外键约束DECLARE c1 cursor forselect 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; 'from sysobjectswhere xtype = 'F'open c1declare @c1 varchar(8000)fetch next from c1 into @c1while(@@fetch_status=0)beginexec(@c1)fetch next from c1 into @c1 阅读全文
posted @ 2012-02-16 17:11 偶不是大叔 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: 数据库里面显示2个时间差 select datediff(minute ,'2008-11-20 19:20:00','2008-11-20 20:50:00') 这样子得出来的是 90 分钟 但我要显示成 1:30分 该怎么做,? 解决: select convert(varchar(5),dateadd(ss, datediff(ss ,'2008-11-20 19:20:00','2008-11-20 20:50:00') ,108),108) 又问: 要是我的时间差大于24小时,那显示出来的就不正确了阿, 应该要显示 小时 阅读全文
posted @ 2012-02-13 12:42 偶不是大叔 阅读(711) 评论(0) 推荐(0) 编辑
摘要: Thumbs.db文件是查看缩略图所产生的缓存文件 将以下保存成bat批处理文件,然后执行即可。 @echo off del c:Thumbs.db /f/s/q/a del d:Thumbs.db /f/s/q/a del e:Thumbs.db /f/s/q/a del f:Thumbs.db /f/s/q/a del g:Thumbs.db /f/s/q/a del h:Thumbs.db /f/s/q/a del i:Thumbs.db /f/s/q/a del j:Thumbs.db /f/s/q/a exit 阅读全文
posted @ 2012-02-10 22:08 偶不是大叔 阅读(826) 评论(0) 推荐(0) 编辑
摘要: 在单元格内插入当前日期:Ctrl+;(分号), 插入当前时间:Ctrl+Shift+;(分号),可以插入当前日期和时间:按Ctrl+;(分号)以后输入一个空格,再按Ctrl+Shift+;(分号), 阅读全文
posted @ 2012-02-08 13:23 偶不是大叔 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="dele" Text="删除" CommandArgument='<%#Eval("EmpNo") %>' OnClientClick="return confirm('是否确认删除?')"> 阅读全文
posted @ 2012-02-06 13:55 偶不是大叔 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <style type=text/css> html,body{overflow-x:hidden;} </style> 阅读全文
posted @ 2012-02-06 13:30 偶不是大叔 阅读(327) 评论(0) 推荐(0) 编辑
摘要: //userinfo是from表单名(name),email是文本框名(name) if(document.userinfo.email.value.length!=0) { if (document.userinfo.email.value.charAt(0)=="." || document.userinfo.email.value.charAt(0)=="@"|| document.userinfo.email.value.indexOf('@', 0) == -1 || document.userin... 阅读全文
posted @ 2012-02-03 13:15 偶不是大叔 阅读(1627) 评论(0) 推荐(0) 编辑
摘要: 1.文本框只能输入数字代码(小数点也不能输入): <input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">2.文本框只能输入数字(包含小数点)<input onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(v 阅读全文
posted @ 2012-02-03 09:54 偶不是大叔 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Exists,NOT EXISTS:1.含义:带有exists谓词的子查询不返回任何实际数据,它只产生逻辑真值true或逻辑假值false。2.查询所有选修了c1号课程的学生姓名: select sn from s where exists (select * from sc where sno=s.sno and cno='c1')注:若内查询结果(select * from sc where sno=s.sno and cno='c1')为空,则外层的where子句返回真值,否则返回假值!查询过程:步骤一:从外层查询中的s表的第一个元组,根据它,与内层查询相 阅读全文
posted @ 2012-02-02 21:57 偶不是大叔 阅读(6327) 评论(1) 推荐(0) 编辑
摘要: 添加EnableEventValidation = "false"<%@ Page Language="C#" MasterPageFile="~/ruichims/Ruichi.Master" AutoEventWireup="true" CodeBehind="AccountsReceivable.aspx.cs" Inherits="RCMS.Web.ruichims.Sale.AccountsReceivable" Title="应收账款跟踪" 阅读全文
posted @ 2012-02-01 21:00 偶不是大叔 阅读(381) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页