php - mysql select rows with top max value -


i have table in mysql columns: id , view , agree. have upload table's image below:

enter image description here

i want select 8 rows greater others in view column. condition agree = 1.

can tell me how can query or .

select * table_name agree = 1 order view desc limit 8  

Comments

Popular posts from this blog

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

I could not debug scala remote application on eclipse or IntelliJ IDEs -