简体   繁体   中英

Convert DB2 SQL query to SQL Server

I have to convert a DB2 query to SQL Server, but don't understand what exactly below query does:

SELECT 
    t.MyColumnA NAME(MyColumnA-01),
    t.MyColumnA COLHDG("COA" "VALUE")
FROM 
    MyTable t

It looks like the NAME and COLHDG functions are just UI functions specific to HelpSystems. The actual query would be

SELECT t.MyColumnA AS "COA VALUE"
FROM MyTable t

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