• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
素蔓、无暇至永恒
承诺总是那么不堪一击~
博客园    首页    新随笔    联系   管理    订阅  订阅
[置顶] 时间差值
摘要: alter procedure Asset_spQueryAlertInfomation(@pi_Action VARCHAR(100),@pi_InfoId BIGINT,@pi_pageIndex INT,@pi_pageSize INT,@po_recordCount BIGINT OUTPUT)asDECLARE @pt_StartRowIndex INTDECLARE @pt_EndRowIndex INTSET @pt_StartRowIndex = (@pi_pageIndex - 1) * @pi_pageSize + 1SET @pt_EndRowIndex = @pi_pa 阅读全文
posted @ 2012-04-26 14:42 pain1033 阅读(221) 评论(0) 推荐(0)
2015年12月15日
sql子查询
摘要: --合同执行度(累计已审批/合同汇总金额)--投资进度(合同汇总总额/批准概算投资额)select a.*,cast(round((ljysp/( case when xmze=0 then 1 else xmze end))*100,2) as numeric(5,2)) as htzxd,cas... 阅读全文
posted @ 2015-12-15 16:43 pain1033 阅读(157) 评论(0) 推荐(0)
2015年11月27日
常用
摘要: DECLARE @pt_retstatus INTDECLARE @pt_retvalue VARCHAR(200)execute App_System_spMakeExecuteInfo 'TrainErp_Financial_DailyRB',@pt_retstatus output,@pt_r... 阅读全文
posted @ 2015-11-27 17:08 pain1033 阅读(305) 评论(0) 推荐(0)
审核流
摘要: 1. 新建一个存储过程-- =============================================-- Author: -- Create date: -- Description: -- =============================================... 阅读全文
posted @ 2015-11-27 09:29 pain1033 阅读(427) 评论(0) 推荐(0)
验证
摘要: checkEqual(id1, id2, msg) //验证二个值是否相等checkIsQQ (id,msg) //验证QQcheckPassWord id,msg) //验证密码checkIsQQ (id,msg) //验证QQcheckMemberCode(id,msg) //验证会员号chec... 阅读全文
posted @ 2015-11-27 09:29 pain1033 阅读(139) 评论(0) 推荐(0)
框架-主从表
摘要: 页面直接通过查询语句取值方法// DataTable页面查询语句取值方法DataTable dtTable = DbService.Instance().QueryDataTable("select * from TrainErp_Product_LevelAfter where ProductCo... 阅读全文
posted @ 2015-11-27 09:28 pain1033 阅读(462) 评论(0) 推荐(0)
框架-字符串拼接、数据库拆分
摘要: 1.Jquery页面拼接字符串方法//开始做字符的合并 var mLevelHtmlInfo = ""; var levelCodes = $("#LevelCodes").val().split(','); if (levelCodes.length > 0) { for (var i = 0; ... 阅读全文
posted @ 2015-11-27 09:28 pain1033 阅读(380) 评论(0) 推荐(0)
框架-下级已存在,上级不可删除
摘要: 主从表或者关联分类表存在下级使用上级数据的,不可删除判断条件if exists (select * from TrainErp_Product_ProductTopic where ProductLevelInfoCode in (select ProductLevelInfoCode from ... 阅读全文
posted @ 2015-11-27 09:26 pain1033 阅读(277) 评论(0) 推荐(0)
框架-页面获取自动生成编号
摘要: 页面获取自动生成编号方法 List parpams = new List(); parpams.Add(new DataParam("Code", "KT")); parpams.Add(new DataParam("Count", "1")); DbService.Instance().Execu... 阅读全文
posted @ 2015-11-27 09:26 pain1033 阅读(266) 评论(0) 推荐(0)
框架-数据库定义MD5加密
摘要: 1.--定义Md5加密declare @pt_pwd varchar(50)set @pt_pwd = ''set @pt_pwd = substring(sys.fn_sqlvarbasetostr(HashBytes('MD5',@pi_Password)),3,32) 阅读全文
posted @ 2015-11-27 09:25 pain1033 阅读(150) 评论(0) 推荐(0)
框架-数据库自动生成编号
摘要: 1. --课件自动编号 declare @pt_OtherCateCode varchar(50) exec App_s_spGetSequenceNumber 'KJ',1,@pt_OtherCateCode output,0 2./*Func:获得自动编号CreateDate:20140829C... 阅读全文
posted @ 2015-11-27 09:25 pain1033 阅读(310) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3