How I can create a table with oracle but with small characters?

后端 未结 2 1225
名媛妹妹
名媛妹妹 2021-01-17 18:47

How I can create a table with oracle but with small characters, when I create a table with small characters it converts auto to capital characters.

2条回答
  •  无人及你
    2021-01-17 19:18

    Enclose table name in quotation marks ("). Also create your table like this

    create table "t" ( a number, b varchar2(10) );
    

    Now your table name is t in lowercase. You have to use quotation marks always, when you access your table. For example

    select * from "t";
    

    You can use same construct for other objects (columns, indexes, ...).

    Anyway, SQL is case insensitive, you need a good reason to use case dependent object names.

提交回复
热议问题