`
shoppingbill
  • 浏览: 59666 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
创建数据库:     DROP TABLE IF EXISTS `oa`.`t_system_log`; CREATE TABLE `oa`.`t_system_log` ( `LOG_ID` varchar(20) NOT NULL default '', `LOG_TYPE` char(2) NOT NULL default '', `EVENT` varchar(100) NOT NULL default '', `REG_DATETIME` datetime NOT NULL default '0000-00-00 00:00:00', `REG_ ...
删除数据库中重复的记录: 查出不重复的记录插到temp 表中. select distinct * into #temp from tableName 删除数据库中所有的记录 delete from tableName 查询所有的记录再插到tableName表中 select * into #tableName from temp

Chapter 2

1、有两个桶,一个能盛5升水,一个能盛3升水,如何用测量出4升水? Answer:   step 1: 用3L的桶打满水倒入5L的桶中,取得3L水. step 2: 再3L的桶打满水倒入5L的桶中,这时5L的桶装满3L的桶还剩下1L(3L+3L-5L). step 3: 把5L桶里面的水全部倒掉,将3L桶中的1L水倒入5L桶中. step 4: 这时5L桶中有1L水,然后再用3L桶装满水倒入其中.(1L+3L=4L)OK.   2、编写程序求解:1-2+3-4+5…….n   Answer:   /** * @author Bill.Zhang * * ...

Chapter 1

1、有两根不均匀分布的香,香烧完的时间是一个小时,你能用什么方法来确定一段45分钟的时间? Answer:   step 1: 在同一个时间将第一根香的两端点着,并把第二根香的一端点着. step 2: 当第一根香(两端点着的那根)烧完的时候是 ...
今天想在自己的机器做个下练习,晕的是我以前安装MYSQL密码忘记了.呵呵.于是Google下.呵呵,成功了.真是让人欣慰啊. Step 1: 停止MYSQL服务. Step 2:   在C:\下建立一个文件叫mysql-init.txt.  文件中填入 SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');  Step 3:  到你的MYSQL安装目录的bin下运行一下语句 mysqld-nt --init-file=C:\mysql-init.txt  Windows会弹出个安全 ...
Ant > Ant Properties File Ant Properties File You can also group all the property values in a separate properties file and include it in the ant build file. Here the build.properties file contains all the property values. Remember the property value is immutable, so if you set a pro ...
Ant > Ant Property Task Ant Property Task The <property> task is used to set the Ant properties. The property value is immutable, once the value is set you cannot change it. To set a property to a specific value you use Name/value assignment. <property> task 是用来设置Ant属性 ...
Ant > Sample Ant Build File - WAR     Sample Ant Build File - WAR I am using the Spring SimpleFormController example to illustrate the build process. The figure below shows the structure of the web application. 我用的是Spring SimpleFormController  example 来阐明build处理过程. Web应用结构配置如下:   All the ...
  Ant > Ant Eclipse IDE Integration Ant Eclipse IDE Integration To integrate Ant build file with the Eclipse IDE, first create a build.xml file, right click the project select New->Other->XML, enter the name as build.xml and click Finish. Eclipse IDE 集成Ant,首先要创建一个build.xml文件 ...
Ant > Sample Ant Build File - JAR Sample Ant Build File - JAR   In this example you will see how to structure the project. If the grows bigger, it will become a problem to manages the files if all the files are there in the same directory. For a easier maintenanace all the source ...
Learn how to install Ant and compile a simple hello world program.学习怎样安装Ant和编译一个简单的hello world程序Ant > Ant Installation Ant InstallationAnt is free and open source build tool, written in Java, helps in automating the entire build process of a Java development project.Ant安装Ant是免费和开源的build工具,用Java编写, ...
IHello.java package org.springsource.proxy; /** * @author billzhang * */ public interface IHello { void sayHello(String name); } HelloImpl.java package org.springsource.proxy; /** * @author billzhang * */ public class HelloImpl implements IHello { public void sayHe ...
软件外包网站,在国外叫兼职网站,可以用兼职(freelance),离岸开发(Offshore Outsourcing)等关键字搜索, 下面是个人收集的一些软件外包网站链接 网站地址 注册时间 活动高峰期 页面数 PR site http://www.codeproject.com 2000 ,2005 517 7 45,500 http://www.outsourcexp.com 2005 ,2006 37 4 1,180 http://www.getafreelancer.com 2004 ,2005 687 4 36,600 http://www.ifreelance.com robot ...
Required jar: commons-fileupload-1.2.X.jar commons-logging-1.0.X.jar freemarker-2.3.X.jar ognl-2.1.X.jar struts2-convention-plugin-2.1.X.jar struts2-core-2.1.6.jar xwork-2.1.2.jar web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" versio ...
这几天做项目时遇到了个问题就是我想通过<a href="XX/XX.do?name="中文" ">XX </a> 这个时候不会报错也不显示name。于是寻求解决方案: 用js创建一个post form 在jsp页面上把参数传进来 dynamicform.js function openHref(myAction, paramName, paramValue) { var submitForm = getNewSubmitForm(); createNewFormElement(submitForm, paramName, ...
Global site tag (gtag.js) - Google Analytics