- 浏览: 7965 次
- 性别:
- 来自: 深圳
最新评论
文章列表
1、查找表中的重复记录,重复记录是根据单个字段(id)来判断select * from peoplewhere id in (select id from people group by peopleId having count(id) > 1)2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录delete from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1)and row ...
create PROCEDURE Sp_Conn_Sort(@tblName varchar(255), -- 表名
@strGetFields varchar(1000) = '*', -- 需要返回的列
@fldName varchar(255)='', -- 排序的字段名
@PageSize int = 40, -- 页尺寸
@PageIndex int = 1, -- 页码
@doCount bit = 0, -- 返回记录总数, 非 0 值则返回
@OrderType bit = 0, -- ...
Spring 控制反转IOC(依赖注入,)
- 博客分类:
- Spring
<?xml version="1.0" encoding="gb2312"?>
<!-- default-lazy-init="true" 为beans下所有的进行延迟初始化 --><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://ww ...
Spring 实例化Bean
- 博客分类:
- Spring
<?xml version="1.0" encoding="gb2312"?>
<!-- default-lazy-init="true" 为beans下所有的进行延迟初始化 --><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://ww ...
java 执行存储过程
- 博客分类:
- java
public void executeProcedure(HashMap map)throws DBException { Session session = HibernateSessionFactory.getInstance().getSession(); Transaction tx = null; try { if(map != null) { String begDatea = ""; String begDateb = "";
if(map.get("begDatea") ...
use excelgoCREATE TABLE doc_exa( col1 int)goalter table doc_exa add clo2 char(2) --添加字段goalter table doc_exa alter column col2 numeric --更改数据类型由int更改为numericgoexec sp_help doc_exagoalter table doc_exa drop column clo2 --删除字段goalter table doc_exa add clo3 varchar(10) null --添加unique 约束constra ...