Sql syntax: select without from clause as subquery in select (subselect)
问题 While editing some queries to add alternatives for columns without values, I accidentally wrote something like this (here is the simplyfied version): SELECT id, (SELECT name) FROM t To my surprise, MySQL didn't throw any error, but completed the query giving my expected results (the name column values). I tried to find any documentation about it, but with no success. Is this SQL standard or a MySQL specialty? Can I be sure that the result of this syntax is really the column value from the