改成:select * from table1 where to_char(myDate,'yy-mm-dd')='05-04-19'

解决方案 »

  1.   

    1. nls_lang不同,xp系统中可能是中文,在2000上英文,所以不一样。
    2. 语句:select * from table1 where myDate = to_date('19-Apr-05','yyyy-mm-dd') 通过。
      

  2.   

    我的xp是英文,但是reginonal options选的Chinese(PRC), 2000是中文
      

  3.   

    可能要把你的注册表的nls_lang的值改一下.先执行查询
    select tab1.aa||'_'||tab2.bb||'.'||tab3.cc from (select VALUE$ aa from sys.props$ where name='NLS_LANGUAGE')tab1,(select VALUE$ bb from sys.props$ where name='NLS_ISO_CURRENCY')tab2,(select VALUE$ cc from sys.props$ where name='NLS_CHARACTERSET')tab3找注册表:hkey_loca_machine\software\oracle\下的nls_lang和其他目录下的nls_lang改成查询得到的结果.然后在执行sql语句.