Home > Database > Mysql Tutorial > Oracle数据库建的表只能加引号才能查出来的解决办法 .

Oracle数据库建的表只能加引号才能查出来的解决办法 .

WBOY
Release: 2016-06-07 15:19:53
Original
1523 people have browsed it

http://blog.csdn.net/yuanboitliuyuan/article/details/3963784 Oracle数据库建的表只能加引号才能查出来的解决办法: CREATE TABLE FAXSVR.SysParam( chParameterName varchar2(64) NOT NULL ,/*Primary Key*/ chParamGroup varchar2 (64) NULL ,/*参数分组

http://blog.csdn.net/yuanboitliuyuan/article/details/3963784

 

Oracle数据库建的表只能加引号才能查出来的解决办法: 

  CREATE TABLE "FAXSVR"."SysParam"(
    chParameterName varchar2(64) NOT NULL ,/*Primary Key*/
 chParamGroup varchar2 (64) NULL ,/*参数分组的组别,*/
........
   )
    TABLESPACE "USERS"

创建的表只能用:

select   *  from  "SysParam"  的方式才能查询,必须给表名加上双引号;

 

解决办法:

      方法一:  表名全部改为大写。

    

              CREATE TABLE "FAXSVR"."SYSPARAM"(......);

     方法二:  创建表时表名前不加user名。

               CREATE TABLE SysParam"(......);

 

 

点下这个表的定义,肯定把列名加引号了,这不是害人嘛!表的列名也不要加引号,创建的时候最好都用大写字符

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template