Jump to content
Sign in to follow this  
Guest Dark_Pegasus333

SQL Problem

Recommended Posts

Guest Dark_Pegasus333

There is a problem I noticed while looking through the SQL tutorial in the "Aliases" section. In your example this was the code you specified:SELECT LastName AS Family, FirstName AS NameFROM PersonsThis wouldn't give the headings EXACTLY as you have them written. On the contrary, "Family" and "Name" would be written in all capital letters. Instead the code should read:SELECT LastName AS "Family", FirstName AS "Name"FROM Persons

Share this post


Link to post
Share on other sites

I've always used square brackets:SELECT LastName [Family], FirstName [Name]FROM Persons

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...