Alright, so I currently have two tables where they have corresponding IDs (it's how we know which listing belongs to which user, they have the same ID). Basically, I want to update all the usernames (column "login") of one table (pmd_users) based off the website URL (column "www") of the other table (pmd_listings), matching them based off IDs. Except, with the http:// removed.
So, the table pmd_users has the field "id" and pmd_listings has "user_id". We only need to update the column "login" in the table "pmd_users". I was thinking of doing it like below, except I'm not sure that's correct, and I have no idea how I would remove "http://" and "https://" from the website (www) column.
UPDATE pmd_users
INNER JOIN pmd_listings
ON pmd_listings.user_id = pmd_users.id
SET pmd_users.login = pmd_listings.www
Any advice?
TL;DR I want the table pmd_users column "login" to match the table pmd_listings column "www" where their ID columns match, except without http://.