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

Menu