D
D
Dima Sokolov2019-09-24 16:35:36
Oracle
Dima Sokolov, 2019-09-24 16:35:36

Table and field names in Oracle SQL?

How it is accepted to write names of tables and fields in oracle? Small C using underscore or PascalCase?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2019-09-24
@Lorien_Elf

Tables and fields in ORACLE can be accessed using any case. For example expressions

select mycol from my_table;
select MYCOL from MY_TABLE;
select Mycol from My_table;

Completely equivalent. But only on condition that the table and fields were specified without quotes during creation.
In other words create table my_table (mycol char(10));, good, but create table "My_Table" ("Mycol" char(10));- bad, it's better not to do it.

I
ivandao, 2019-09-24
@ivandao

SQL style guide

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question