Tuesday, June 5, 2018

How to use not equal to condition in mysql query ?


Here  is the syntax of how to use not equal to condition in mysql

$sql="SELECT * FROM student where NOT city='delhi'";

here this query retrieve the result from student table which student not belong to Delhi.

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...