
Oracle
iteye_17076
这个作者很懒,什么都没留下…
展开
-
Oracle导入表的命令
导入.imp表用 imp 命令: C:\Documents and Settings\Administrator>imp Import: Release 9.2.0.1.0 - Production on 星期二 11月 14 22:14:02 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved ...2006-11-14 22:26:58 · 322 阅读 · 0 评论 -
从Oracle中导出数据表!
C:\Documents and Settings\Administrator>exp Export: Release 9.2.0.1.0 - Production on 星期四 12月 7 12:52:05 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. 用户名: peam 口令: 连接...2006-12-07 21:49:07 · 169 阅读 · 0 评论 -
ORA 01810 格式代码出现两次
如:select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mm:ss') from dual; 原因是SQL中不区分大小写,MM和mm被认为是相同的格式代码,所以Oracle的SQL采用了mi代替分钟。 select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mi:ss') from dual...2006-12-24 22:06:38 · 454 阅读 · 0 评论 -
to_char()与to_date()函数
今天写一个关于统计方面的东西用到这两个函数: 1.若统计一个时间点比如某个月的数据: to_char(BEGIN_TIME, 'yyyy-MM') = '2006-04' 相当于to_date('2006-04','yyyy-MM') = trunc(BEGIN_TIME,'MM') 其中trunc中的'mm'代表精确到月,Oracle中的dd自动会默认从“1”开始。 2.如果统...2007-04-30 13:30:10 · 313 阅读 · 0 评论 -
常见的SQL语句
新建表: create table [表名] ( [自动编号字段] int IDENTITY (1,1) PRIMARY KEY , [字段1] nVarChar(50) default '默认值' null , [字段2] ntext null , [字段3] datetime, [字段4] money null , [字段5] int default 0, ...2007-05-23 16:47:59 · 144 阅读 · 0 评论