You still need some kind of “id” for this.
In your example such id would be “this-product-is-good”.
It means you have to store those text keys (SLUGs) for each product and query the database using text key instead of normal auto increment id.
Your table would look like:
id | title | slug
---------------------------------------
1 | First Product | first-product
2 | Second Product | second-product
and query:
SELECT * FROM products WHERE slug = 'first-product'