Prompt how to implement a recursive problem to Mysql:
I have a table:
CREATE TABLE t_info(id INT PRIMARY KEY, parent_id INT, info VARCHAR(32));
Need to get info by id of ID row and info of parent of ID and info of parent of parent of ID etc until the first parent.
How to do it in one SQL query?