Jump to content

mysql alias


abdelelbouhy
 Share

Recommended Posts

hello guys if someone can explain this when we create alias we say "select p.product_id from product as p" that is fine but in oscommerce the statement is written like that "select p.product_id from products.p" there's no "AS" so i wonder if both products.p and products AS p are equal

Link to comment
Share on other sites

here in products.p 'products' refer to the database where table 'p' exist and in p.product p refer to the column product_id od table 'p' .this is not alias.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...