Oracle table column name with space

后端 未结 6 1271
北荒
北荒 2020-12-06 09:24

Is it possible to create a table with column name containing space? If so how can I create and use it?

6条回答
  •  离开以前
    2020-12-06 09:48

    Did you Google for this? I did - the 6th link was this, in which I find the following:

    create table employee (
       "First Name" varchar2(20),
       "Last Name" varchar2(20),
       Address varchar2(60),
       Phone varchar2(15),
       Salary number,
       EmpID number,
       DeptID number
    ); 
    

    ... which works fine when I tried it in 10g.

提交回复
热议问题