Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias to a column

Status
Not open for further replies.

SIDSHU

Programmer
Nov 7, 2002
9
0
0
US

How can give an alias name to a column.

like
select FirstName AS F_Name from table1 in db2 sql query.

I tried select FirstName AS F_Name from table1 , did not work

Thanks.
 
When you say "did not work", exactly what was the result? Did you get an error message or did the alias just not look like you wanted?
 
Is it possible the "_" is a reserved character on your system? If so you may have to enclose the name in qoutes.

VTJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top