+ 2

help

Insert into animals values ('Slim', 'Girraffe', 1); select animals.name AS name, animals.type as type, countries.country as country from animals INNER JOIN countries ON animals.country_id=countries.id order by countries.country; Where is the error here please ?

26th Dec 2021, 7:30 PM
nadia ben hassine
nadia ben hassine - avatar
2 Antwoorden
+ 9
INSERT INTO Animals (name, type, country_id) VALUES ('Slim', 'Giraffe', 1); SELECT animals.name, animals.type, countries.country FROM animals inner join countries ON animals.country_id = countries.id ORDER BY Countries.country;
26th Dec 2021, 7:56 PM
ÃKR
ÃKR - avatar
+ 1
insert into Animals (name, type, country_id) values ('Slim', 'Giraffe', 1); select a.name, a.type, c.country from Animals a inner join Countries c on c.id=a.country_id order by c.country;
26th Dec 2021, 11:49 PM
SoloProg
SoloProg - avatar