20. maj 2004 - 15:54Der er
6 kommentarer og 1 løsning
Not unique table/alias
Jeg har en mysql db, men jeg får flg. fejlmeddelelse når jeg prøver at køre koden i phpmyadmin: "Not unique table/alias: 'country'"
Koden er
SELECT mission.missionID, mission.reptitle, country.country, mission.address1, mission.postnr, mission.city, mission.cityserved FROM mission LEFT JOIN country ON country.countryID = mission.host LEFT JOIN country ON country.countryID = mission.guest
Der bliver investeret massivt i AI. Teknologien er mere tilgængelig end nogensinde, og ambitionerne er høje. Alligevel oplever mange virksomheder, at resultaterne udebliver.
SELECT mission.missionID, mission.reptitle, country1.country, mission.address1, mission.postnr, mission.city, mission.cityserved FROM mission LEFT JOIN country country1 ON country1.countryID = mission.host LEFT JOIN country country2 ON country2.countryID = mission.guest
Har lige et spørgsmål til.. Når jeg laver et opslag udfra flg. sql-sætning:
***** SELECT mission.missionID, mission.reptitle, country1.country, country2.country, country3.country, mission.address1, mission.postnr, mission.city, mission.cityserved FROM mission LEFT JOIN country country1 ON country1.countryID = mission.host LEFT JOIN country country2 ON country2.countryID = mission.host2 LEFT JOIN country country3 ON country3.countryID = mission.guest ***** hvordan får jeg så et print af alle "country"-opslagene? Jeg har brugt flg. sætning til at kalde oplysningerne:
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.