How can I concatenate all the rows in single rows when I fire SELECT query?
Use conbination of group_concat and concat functions
group_concat
concat
SELECT group_concat( concat( id, " ",name," ",city," ",state," " ) SEPARATOR ' ') FROM tablename