e_e
- 浏览: 83900 次
- 性别:
- 来自: 上海
社区版块
- ( 0)
- ( 0)
- ( 0)
最新评论
文章列表
with
per as (select sum(person_num) as sum_person_num from person_num where app_org_id='memedai' and to_date(start_date,'yyyy-mm-dd')>=to_date('2016-06-01', 'yyyy-mm-dd') and to_date(end_date, 'yyyy-mm-dd')<=to_date('2016-06-30', 'yyyy-mm-dd') ),
a as (select sum("广东"*p.person_nu ...
- 2016-08-25 10:48
- 浏览 504
- 分类:操作系统
《oracle 就是矫情》
ora-01849: hour must be between 1 and 12
错误:
select * from score_order t where app_create_time between to_date('2016/08/04 00:00:00','yyyy/mm/dd hh:mi:ss') and to_date('2016/08/04 23:00:00','yyyy/mm/dd hh:mi:ss')
更正:
select * from score_order t where app_create_time between to_ ...
- 2016-08-05 15:07
- 浏览 1613
- 分类:数据库
- 博客分类:
- oracle
《oracle就是矫情》
错误:
select * from score_order t where app_create_time between to_date('2016/08/04 00:00:00','yyyy/mm/dd hh:mm:ss') and to_date('2016/08/04 23:00:00','yyyy/mm/dd hh:mm:ss')
查询时报错ora-01810: format code appears twice
原因是月用mm,分钟用mm,在oracle中不允许
更正:
select * from score_order t wh ...
- 2016-08-05 15:07
- 浏览 649
- 分类:数据库
cmd
1. 打开sqlplus
sqlplus /nolog
2.连接
conn zjf/zjf@investment
- 2016-07-07 11:48
- 浏览 451
- 分类:数据库
默认情况下,pl/sql developer是无法连接到数据库的,原因是:pl/sql developer 是沒办法执行64位元的oci.dll,可是 win7 x64 又只能装64 位元oracle client x64。变成要多下载一个oracle instant client x32 oci.dll是64位的,而
- 2016-07-07 11:47
- 浏览 1530
- 分类:数据库
win7逐渐成为现行主流的windows操作系统,其32和64位系统平分秋色。然而当下还没有64位的pl/sql developer问世,直接用32位的pl/sql developer连接win7(64位)作为服务器的oracle的时候,总是出现这样那样的错误,通过网上资料和自己测试,找到一个可以正常使用的方法。
1、下载oracle客户端(http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
下载32位的就可以了。此客户端与ora ...
- 2016-07-07 11:40
- 浏览 413
- 分类:数据库