mysql - How to return a complete column including duplicate values? -


i have created 1 table 3 columns
table name = chat

column 1 id column 2 numbers column 3 messages

column 1 = 1 2 3 4 5 6 7 8 9

column 2 = 1 5 6 4 5 3 5 5 5

column 3 = r h s g a a

how write query retrieve single column in following format

where column 2 = 5 should return as

column 3 = a a a

i tried group returns me single inserted of a a please help...
thanks in advance

select column3 chat column2 = 5 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -