mysql select multiple rows into one column
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'
mysql select multiple rows into one column
SELECT
GROUP_CONCAT(DISTINCT id SEPARATOR ', ') AS 'ids'
FROM
table_name
WHERE
column_name = 'value'
mysql count multiple columns in one query
mysql count multiple columns in one query:
SELECT
count(*) as count_rows,
count(col1) as count_1,
count(col2) as count_2,
count(distinct col1) as count_distinct_1,
count(distinct col2) as count_distinct_2,
count(distinct col1, col2) as count_distinct_1_2
FROM `table` ;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us