mysql - need a select query? count the number of id's which appear unique time? -


this question has answer here:

need select query should count cat_id table [output should 4][1]

[1]: https://i.stack.imgur.com/caqmc.pngoutput 4

select count (distinct cat_id) table_name 

Comments

Popular posts from this blog

python - PyInstaller UAC not working in onefile mode -

python - RuntimeError: can't re-enter readline -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -