-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
Description
Having the AS keyword in the select expression is option, following both should work:
SELECT 1 AS name;
SELECT 1 name;But the shorter variant fails:
$ ./bin/lint-query --query 'SELECT 1 name'
#1: Unrecognized keyword. (near "name" at position 9)MySQL docs: https://dev.mysql.com/doc/refman/5.7/en/select.html#idm139723195268992
See also phpmyadmin/phpmyadmin#13541
peter279k, nsaumini and williamdes