`
nakupanda
  • 浏览: 416606 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
问题描述: 数据表中有记录的time字段(属性为timestamp)其值为:“0000-00-00 00:00:00” 程序使用select 语句从中取数据时出现以下异常: java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date 后查资料发现 “0000-00-00 00:00:00”在mysql中是作为一个特殊值存在的 但 java.sql.Date 将其视为 不合法的值 格式不正确 解决办法: 给jdbc   url加上   zeroDateTimeBehavior参数: ...
转自: http://www.iteye.com/topic/1052822
mysql> (select "yes" from dual where 5 between 1 and 10) union (select "no") limit 1; +-----+ | yes | +-----+ | yes | +-----+ 1 row in set (0.02 sec) mysql> (select "yes" from dual where 5 between 10 and 1) union (select "no") limit 1; +-----+ | yes | +- ...
假设有数据库db1和db2 , 表db1.t_task_msg, db2.t_task_msg 现在同步db1.t_task_msg数据到db2.t_task_msg 1, 在db2建立到db1的连接source_link create database link source_link    connect to db1_user identified by db1_pwd    using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521) ...
1, 建立连接 drop database link source_link; create database link source_link    connect to user identified by password    using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) )' ; 2, 查询 ...
http://www.lambdaprobe.org
安装过程中遇到不少问题,记录一下: wayne@wayne-laptop:~/.ssh$ ssh -X holly@10.8.66.201 holly@10.8.66.201′s password: Linux ubuntu108 2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are descri ...
cat /proc/swaps | awk '{if(NR==2)print $3/1024"MB"}'
suse linux 安装 apache2 php5 出现 Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: 到PHP源码目录make clean , 再重新安装一次
rpm -q xxxx 查询 rpm -ivh xxxx 安装 rpm -e xxxx 卸载
select * from ( select * from your_table order by dbms_random.value ) where rownum <= 10
    1     create   or   replace   procedure   p_test     2     as     3     v_G   VARCHAR2(10);     4     begin     5     begin     6     select   name   into   v_G   from   test   where   id   =1;     7     exception     8     when   no_data_found   then     9     v_G:= 'hhh ';   10     end;   11    ...
apache: 转自 http://blog.csdn.net/loverwind/archive/2008/10/12/3064356.aspx 1.       下载apache, http://httpd.apache.org/download.cgi  通过这个官方网站,我们可以下到最新的版本。现在版本都是以这样的方式表达的:httpd-*.*.*.tar.gz 2.       例如, ...

oracle exp/imp

导出: exp username/password@database file=/var/bak/oracle.dmp 导入 imp username/password file=/var/bak/oracle.dmp full=y

java 线程池

    博客分类:
  • java
package test; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class TestThreadPool { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub ...
Global site tag (gtag.js) - Google Analytics