Jump to content

Need help adding a prefix to product id with SQL Query.


turdi

Recommended Posts

Hello,

 

First of all, sorry about the basic question, but I'm pretty bad at forming the SQL queries...

 

I have a simple query to get the id and qty, but in this case I need to add a prefix to all the ID's.

SELECT p.id_product, p.quantity
FROM ps_product p
GROUP BY p.id_product

I've tryed

CONCAT('v4',p.id_product) as p.id_product 

but with no luck.

 

Trying to learn and understand how it works.

Thanks you!!!

Link to comment
Share on other sites

  • 1 month later...

Thank you !! 

One more question, do you know in witch table I can find the Final price value? 

I can't find it in the database... I have found base price in ps_product table, but can't find the final price... 

 

Thank you!!

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
×
×
  • Create New...