sql - Oracle DB quote column names -


when using regular tables, fine use following oracle sql query:

select max(some_primary_key) mytable 

however, when using database objects (i.e. table of object), yields following error:

ora-00904: "some_primary_key": invalid identifier 

when quoting column name, this:

select max("some_primary_key") mytable 

this works expected. why necessary escape column names when working objects, not tables?

it doesn't have objects or tables, has how these objects/tables have been created.

if create table "blabla" need address table "blabla", if create table blabla can address table via blabla or blabla or blabla. using " " makes name case sensitive , reason why developers don't use " " because don't want case sensitive names .


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -