- 浏览: 38302 次
- 性别:
- 来自: 上海
最新评论
-
chinatian:
chinatian 写道chinatian 写道ding di ...
python中常用日期操作总结 -
chinatian:
chinatian 写道ding ding
python中常用日期操作总结 -
chinatian:
ding ding
python中常用日期操作总结 -
movingboy:
楼主的帖子发错板块了~~~
oracle存储过程语法 -
dd2086:
看不懂,呵呵!
oracle存储过程语法
文章列表
首先编写一个分页用的类
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.tagext.BodyTagSupport;
import com.xfaccp.hibernate.dao.CustomersDAO;
public class PagTag extends BodyTagSupport {
private HttpServletRequest ...
- 2007-12-07 12:54
- 浏览 2840
- 评论(0)
存储过程 包含三部分: 声明,执行部分,异常。
可以有无参数程序和带参数存储过程。
无参程序语法
1 create or replace procedure NoParPro
2 as ;
3 begin
4 ;
5 exception
6 ;
7 end;
8
带参存储过程实例
1 create or replace procedure queryempname(sfindno emp.empno%type) as
2 sName emp.ename%type;
3 sjob emp.job% ...
Tomcat6.0连接池配置
1.配置tomcat下的conf下的context.xml文件,在之间添加连接池配置:
1. <Resource name="jdbc/oracle"
2. auth="Container"
3. type="javax.sql.DataSource"
4. driverClassName="oracle.jdbc.driver.OracleDriver "
5. url=" ...
- 2007-12-05 18:23
- 浏览 7744
- 评论(0)
# -*- coding: utf-8 -*-
from datetime import datetime
from datetime import date
from time import strftime
from time import strptime
from datetime import timedelta
def getCurDate():
"""Return value of the date"""
return date(datetime.now().year,datetime. ...
- 2009-04-30 11:13
- 浏览 5981
- 评论(3)
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class DateUtil {
/**
* getDateStr get a string with format YYYY-MM-DD from a Date object
*
...
- 2009-04-23 19:22
- 浏览 2167
- 评论(0)
package com.shop.dbo;
import java.sql.*;
import javax.servlet.ServletContext;
public class BaseDAO {
/**
* 这个方法是用来得到数据库连接
*/
public final Connection getConnection() throws Exception
{
Connection conn = null;
Class.forName("com.microsoft.jdb ...
- 2007-12-07 13:02
- 浏览 1309
- 评论(0)
各种数据库的JDBC连接大全
Microsoft SQL Server series (6.5, 7.x and 2000) and Sybase 10
JDBC Name: jTDS
URL: http://jtds.sourceforge.net/
Version: 0.5.1
Download URL: http://sourceforge.net/project/showfiles.php?group_id=33291
语法:
Class.forName("net.sourceforge.jtds.jdbc.Driver ");
Conn ...
- 2007-12-07 12:38
- 浏览 9826
- 评论(0)