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
Post a Comment