Created
June 29, 2023 06:37
-
-
Save maxout/960eabf3d1712362ab23e12324b60071 to your computer and use it in GitHub Desktop.
selects rewrite urls from SW5 Database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT scru.org_path,scru.path, sad.ordernumber, SUBSTRING_INDEX(scru.org_path,'=',-1) AS aid from s_core_rewrite_urls scru | |
LEFT JOIN s_articles_details sad ON sad.articleID = SUBSTRING_INDEX(scru.org_path,'=',-1) | |
WHERE scru.org_path LIKE "sViewport=detail&sArticle=%" | |
GROUP BY scru.org_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment