dexter_sherban Posted April 10, 2007 Share Posted April 10, 2007 I want to take every entry in a column and see if there is any entry with the same value in that column.If yes I want to remember the value of that entry and store it into a varriable. Does anyone know how to do that ? Link to comment https://forums.phpfreaks.com/topic/46448-mysql-question/ Share on other sites More sharing options...
monk.e.boy Posted April 10, 2007 Share Posted April 10, 2007 do something like: select my_val, count(id) as c from table group by my_val So if the table had: 1,me 2,me, 3,you and the output would be: me,2 you,1 monk.e.boy Link to comment https://forums.phpfreaks.com/topic/46448-mysql-question/#findComment-225960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.