0

I am trying to create the table using below codes but the column name do not show schema name.

Select customer as `tablename.customer`
From tablename 

Also, I tried

Select customer as [tablename.customer]
From tablename 

Any suggestions?

Thank you, KP

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
KunalP
  • 1

1 Answers1

0

Based on the assumption of Dremel / Drill, use a table alias on your queries, e.g.

Select t.customer as `tablename.customer`
From tablename t;
Laughing Vergil
  • 3,706
  • 1
  • 14
  • 28