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

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -