Usa backtick(`) o Citazione singola(') per dare alias il nome della colonna in MySQL.
Prova questo:
SELECT `id` AS 'key', `country_name` AS value
FROM countries;
O
SELECT `id` AS `key`, `country_name` AS value
FROM countries;
Usa backtick(`) o Citazione singola(') per dare alias il nome della colonna in MySQL.
Prova questo:
SELECT `id` AS 'key', `country_name` AS value
FROM countries;
O
SELECT `id` AS `key`, `country_name` AS value
FROM countries;