我通过其他工具导入到ORACLE中一张表 表名为1.3.11.12
表结构如下:
-- Create table
create table 1.3.11.12
(
CreateTime DATE not null,
RecordState VARCHAR2(10),
percentUsed FLOAT,
Mbfree FLOAT,
pagesPerSec FLOAT,
TotalMemory FLOAT
)
tablespace OADATA
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table 1.3.11.12
add primary key (CREATETIME)
using index
tablespace OADATA
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
问题是:我用sql语句查询表中任何一个字段都会报错
例如:select createtime from "1.3.11.12" 执行之后报错(invalid identifier)谁能帮忙解决下 谢谢
表结构如下:
-- Create table
create table 1.3.11.12
(
CreateTime DATE not null,
RecordState VARCHAR2(10),
percentUsed FLOAT,
Mbfree FLOAT,
pagesPerSec FLOAT,
TotalMemory FLOAT
)
tablespace OADATA
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table 1.3.11.12
add primary key (CREATETIME)
using index
tablespace OADATA
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);
问题是:我用sql语句查询表中任何一个字段都会报错
例如:select createtime from "1.3.11.12" 执行之后报错(invalid identifier)谁能帮忙解决下 谢谢
解决方案 »
- sql 语句查询一个表中不同的记录有多少条?
- 请教sql问题,刚才那位仁兄的语句看似对了,但结果还是不行啊
- Oracle下创建一个函数,返回值类型是TABLE,报错,sql server下是正确的
- oracle查询问题,请会的人进来看一下指点一下菜鸟
- 求救!!!数据恢复问题,怎么在一台机器上恢复别一台机器上的ORL文件夹下的数据库文件???
- 求问
- 有数据的字符型转换成可能大于4000的数据类型应该怎样去转换呢!
- 关于ORA-12560: TNS: 协议适配器错误!
- ORACLE有时出现超过打开的最大的游标数错误,请问怎么解决!(在线等待,一定给分)
- 为什么会这样???
- 在oracle中,是不是一定要有主键或者唯一约束的列才能被其他表的外键列所引用
- sql语句插入一列的问题
不加引号试试
如果就执行“select * from 1.3.11.12”会报错(invalid table name )我加了引号后(select * from “1.3.11.12”)就可以执行了
但是select createtime from "1.3.11.12"就不行
SQL> SELECT * FROM SYS."1.3.11.12";
CREATETIME RECORDSTATE PERCENTUSED MBFREE PAGESPERSEC TOTALMEMORY
----------- ----------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Executed in 0.032 seconds
SQL> SELECT createtime FROM SYS."1.3.11.12";
CREATETIME
-----------
Executed in 0.031 seconds
SQL>
是CreateTime的大小写问题吧
select * from “1.3.11.12“