DB
wuy13862574600
http://s.click.taobao.com/t_1?i=oBOmP1cQYFvi&p=mm_14694208_0_0&n=11
展开
-
sql case when 语句处理Null
case columnName 就能判断该字段不为Null. 例如 create table test(id int identity,username varchar(20)) go insert into test(username) values('张三') go insert into test(username) values('李四') go insert into t...原创 2009-11-06 10:02:43 · 144 阅读 · 0 评论 -
使用ActionRedirect 在action里实现重定向
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionRedirect redirect = new ActionRedirect(mapp...原创 2009-11-07 13:31:34 · 338 阅读 · 0 评论 -
HQL distinct使用
HQL查询过滤重复的对象 java 类如下 package test; public class TestDistinct { private long id = 0; private int code = 0; private String msg = ""; public TestDistinct(){ } public TestDistin...原创 2009-12-11 14:04:09 · 206 阅读 · 0 评论 -
向SQLserver里导入导出excel内容
导入excel: excelexec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure go declare @ttable varchar(20) set @ttable='newtable' if exis...2010-04-14 15:54:17 · 99 阅读 · 0 评论 -
对象限定符的数据库名称部分必须是当前数据库的名称问题解决
执行存储过程时提示 对象限定符的数据库名称部分必须是当前数据库的名称。 折腾老半天,后来把存储过程名称改了就ok了 估计是sqlserver保留的关键字。 只是这个提示信息台让人费解了。...2010-07-14 15:36:47 · 637 阅读 · 0 评论