K
K
Kamil2020-10-17 13:46:30
SQL
Kamil, 2020-10-17 13:46:30

How to display the desired field from mysql database in one column?

Can you please tell me the sql query to display the required field in one column.
There is a user base, you need to extract all email addresses into one column in order to export them later
. How to do this correctly?
I try like this
SELECT * FROM `xf_user` WHERE `email` LIKE '' ORDER BY `email` ASC fails
select `xf_user` from users mysite `email` - doesn't output either

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hanneman, 2020-10-17
@Lakika

SELECT email FROM `xf_user`;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question