HomeMogDBMogDB StackUqbar
v5.0

Documentation:v5.0

Supported Versions:

Other Versions:

Column Name Identifiers

Precautions

Compared with the original MogDB, Dolphin modifies the column name identifiers as follows:

  • Column names and aliases are sensitive to storage and display. Whether to use double quotation marks to enclose column names is not considered.
  • Column names and aliases are insensitive to comparison. That is, column names 'aAa' and 'AAa' identify the same column.

Example:

MogDB=#  create database col_name dbcompatibility 'B';
CREATE DATABASE

MogDB=#  \c col_name

col_name=# create table t1(aAa int);
CREATE TABLE

col_name=# insert into t1 values(1);
INSERT 0 1

col_name=# select * from t1;
 aAa
-----
   1
(1 row)

col_name=# select "AAa" from t1;
 AAa
-----
   1
(1 row)

col_name=# select aaa AS AaA  from t1;
 AaA
-----
   1
(1 row)
Copyright © 2011-2024 www.enmotech.com All rights reserved.