Home > Mobile >  I want to show a column with some special charcter in SQL
I want to show a column with some special charcter in SQL

Time:01-05

I need to extract a column[Employee] in DB as "Employee(Emp)" in Hive. Is that possible we can handle in hive.

Select Employee as Employee(Emp) from Emp_Table

But it seems doesnt work as expected

CodePudding user response:

use backtick (``) to enclose the alias.

Select 'aa' as `Employee(Emp)` 

enter image description here

  • Related