Oracle table column name with space

后端 未结 6 1276
北荒
北荒 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:45

    This is the columns rule defined for oracle

    Columns (for tables)

    1. All columns are in form {alias}_{colname}. For example prs_id, prs_name, prs_adr_id, adr_street_name. This guarantees that column names are unique in a schema, except denormalized columns from another table, which are populated using triggers or application logic.
      1. All columns are in singular. If you think you need a column name in plural think twice whether it is the right design? Usually it means you are including multiple values in the same column and that should be avoided.
      2. All tables have surrogate primary key column in form {alias}_id, which is the first column in the table. For example, prs_id, mat_id, adr_id.

    you can always have alias for column name bu using ""

提交回复
热议问题