Ask a question of how a Mysql query result can be output twice?

I need to query a piece of data, such as a SQL statement like this

"SELECT field_a A,
       field_b B,
       1 select_type,
       field_a A,
       field_b B,
       2 select_type
FROM table_a`

her output looks like this

I know you can get results with two SQL statements, but how do you get them with one SQL statement?

Mar.17,2021

  

leftjoin or inner check yourself

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b391b4-411aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b391b4-411aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?