`
中华好儿孙
  • 浏览: 68696 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
<select id="selectTest" parameterType="cn.com.n22.global.common.query.Query" resultType="java.util.LinkedHashMap"> <bind name="halo" value="searchMap['wordItem'][0]"/> select #{halo} name1 </select> package cn.com.n22.gl ...
SELECT request_session_id spid,OBJECT_NAME (resource_associated_entity_id)tableName FROM sys.dm_tran_locks WHERE resource_type='OBJECT ' ; KILL 某个spid; 参考:http://blog.csdn.net/lxl743p/article/details/41480981
SimpleDateFormat sdf=new SimpleDateFormat("hh:mm"); Date time = sdf.parse(activityVO.getActivity().getActiveStartTime()); Date time2 = sdf.parse(activityVO.getActivity().getActiveEndTime()); sdf = null; Calendar instance = Calendar.getInstance(); instance.s ...
SELECT CONVERT(DECIMAL(5,1), DATEDIFF(SECOND, '09:00', '09:20')/3600.0)
CREATE TRIGGER [dbo].[actStatisticsTrigger_actObj_insert] ON [dbo].[gl_activity_customer] AFTER INSERT AS DECLARE @assignId NVARCHAR(32) --活动执行人 DECLARE @actObjCount NUMERIC(5) --统计变量 DECLARE @actDate NVARCHAR(8) --活动当天日期 DECLARE @dayInWeek NVARCHAR(1) --活动当天是周几 DECLARE @myFlag NVA ...
CREATE TRIGGER [dbo].[actStatisticsTrigger_insert] ON [dbo].[gl_activity] AFTER INSERT AS DECLARE @counntOfInsert INT --考虑到一条insert语句插入多条记录的情况 SELECT @counntOfInsert = COUNT(*) FROM inserted WHILE(@counntOfInsert > 0) BEGIN DECLARE @firstRankType NVARCHAR ...
--获取指定月的工作日天数(不考虑国家法定节假日,只排除周六周日, 已在休假行事历中设置休息天的也能获得工作天数) CREATE FUNCTION [dbo].[getCountOfWorkdaysOfMonth](@year_in NVARCHAR(4), @month_in NVARCHAR(2), @restDayStr NVARCHAR(100)) --year_in 为四位年,month_in为两位月,@restDayStr为休息天字符串(用逗号分隔) returns INT --使用函数的前要先写 set datefirst 1 这一句,让一周的第一天为1,即周一 AS ...
<bean id="folderCleanerBean" class="cn.com.n22.global.quartzJob.FolderCleaner"></bean> <bean id="systemFolderCleanerJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="tar ...
http://wenku.baidu.com/link?url=jq3vsIWo1nA-9iOPFg0w8GvrFr0nmf-bVP_nrbgm_aWLaPikwbawnzyqg2iOnT1iDH38HUPMfLSm2xKzUXQlH-JrGw1noMkpdSLEtQhmjJC
<foreach collection="accurateSearchMap" index="key" item="item"> <if test="key == 'gcc.sex' and item != '3' and item!='' and item!=null"> and ${key} = #{item} </if> <if test="key == 'gcc.classes' and i ...
在sqllite这样的数据库里没有row_number或者rank这样的分析函数, 但有时候需要实现一些需求比如取各班的成绩第一名的学生,这时候如果数据库里没有分析函数,也可以使用普通sql来解决。 CREATE TABLE stugrade ( stuid VARCHAR(10), stuname VARCHAR(100) not NULL, score INT, classid VARCHAR(5) , PRIMARY KEY(stuid) )ENGINE=INNODB DEFAULT CHARSET=utf8 INSERT INTO stugrade(stuid,stuna ...
create view v_familyInsurancesLookup WITH SCHEMABINDING as ( select company, policyHolderName, policyHolderId, insuredName, insuredCusId, age, validateDate, productName, maxpay, productCurrency, amount, modePremium, ...
package test; import java.math.BigDecimal; public class TestBigDecimal { public static void main(String[] args) { BigDecimal n1 = new BigDecimal(2.2); BigDecimal n2 = new BigDecimal(2); System.out.println("new BigDecimal(2.2) 除以 new BigDecimal(2) 等于 "+n1.divide(n2)); B ...
create table YEAR_SALES ( YEAR VARCHAR2(4), QUANTITY NUMBER ) ; prompt Loading YEAR_SALES... insert into YEAR_SALES (YEAR, QUANTITY) values ('2001', 100); insert into YEAR_SALES (YEAR, QUANTITY) values ('2002', 200); insert into YEAR_SALES (YEAR, QUANTITY) values ('2003', 220) ...
数据库: create table INSURANCE_PRODUCT ( product_code VARCHAR2(32) not null, product_name NVARCHAR2(20), product_type VARCHAR2(1), validate_date VARCHAR2(8) ) ; alter table INSURANCE_PRODUCT add constraint PK primary key (PRODUCT_CODE); insert into INSURANCE_PRODUCT (product_c ...
Global site tag (gtag.js) - Google Analytics