Query Question

C

=C-Black=

Hi All,
I found this statement :
Select ID As xyz_ID_xyz, CustomerName As xyz_DispExpr_xyz,
CustomerName From dbComp Order By ID
But I cannot understand "xyz_ID_xyz" and "xyz_DispExpr_xyz".
May I trouble you to explain it to me or introduce any web site for me
please?
thank you
 
A

Arvi Laanemets

Hi

Select OldFieldName1 As NewFieldName1, Expression(OldFieldName2) As
NewFieldName2, ...

It renames selected field or expression based on field(s) with new name. In
your case in returned result are columns As xyz_ID_xyz and As
xyz_DispExpr_xyz instead of ID and CustomerName


Arvi Laanemets
 
C

=C-Black=

thank you , i got it

Arvi Laanemets said:
Hi

Select OldFieldName1 As NewFieldName1, Expression(OldFieldName2) As
NewFieldName2, ...

It renames selected field or expression based on field(s) with new name. In
your case in returned result are columns As xyz_ID_xyz and As
xyz_DispExpr_xyz instead of ID and CustomerName


Arvi Laanemets
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top