D
D
Dmitry2017-10-12 04:46:35
MySQL
Dmitry, 2017-10-12 04:46:35

How to make two requests in one?

Goodnight! How can I combine two queries in mysql?

SELECT *, CONCAT(lastname,' ', firstname,' ', middlname) fio, 
desired_profession, phone1, phone2, email1, payment 
as concat FROM profil  LIMIT 100

and this one
(`desired_profession` REGEXP 'продавец|продаж' )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2017-10-12
@Immortal_pony

SELECT 
    *, 
    CONCAT(lastname,' ', firstname,' ', middlname) fio, 
    desired_profession, 
    phone1, 
    phone2, 
    email1, 
    payment as concat
FROM profil
WHERE desired_profession REGEXP 'продавец|продаж'
LIMIT 100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question