Created
March 22, 2012 18:33
-
-
Save raedatoui/2161387 to your computer and use it in GitHub Desktop.
mysql select concat links
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 CONCAT('http://naturevalleytrailview.com/',parks.slug,'/',trails.slug,'#panorama-',interest_points.slug) | |
FROM `interest_points` | |
LEFT JOIN trails ON trails.id = interest_points.trail_id | |
LEFT JOIN parks ON parks.id = trails.park_id | |
WHERE `poi_type_id` = 1 ORDER BY parks.id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment