简体   繁体   中英

SQL Table-Creation: AS Uppercase declaration not functioning [SQL]

I do have the following Issue: When creating a new Table:

COLUMN TABLE "Example"( 
"ID"   INTEGER CS_INT NOT NULL,
"Name" NVARCHAR(10),
"NameUpperCase"   NVARCHAR(50) AS UPPER("Name"),
"IDUpperCase"   NVARCHAR(15) AS UPPER("ID"),
 PRIMARY KEY (   
"ID"
 )
) UNLOAD PRIORITY 5 AUTO MERGE ;

i am met with the issue that AS is not supported . For a very long time it did work, now it seemingly doesn't.

Question: How to solve that?

May be you missed adding 'CREATE' before:)

CREATE COLUMN TABLE "Example"( 
"ID"   INTEGER CS_INT NOT NULL,
"Name" NVARCHAR(10),
"NameUpperCase"   NVARCHAR(50) AS UPPER("Name"),
"IDUpperCase"   NVARCHAR(15) AS UPPER("ID"),
 PRIMARY KEY (   
"ID"
)) UNLOAD PRIORITY 5 AUTO MERGE ;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM