Home > Database > Mysql Tutorial > body text

Write a MySQL query that shows equality conditions?

PHPz
Release: 2023-09-16 18:29:02
forward
1222 people have browsed it

写出显示相等条件的 MySQL 查询?

#The binary equality operator compares whether its operands are strictly equal or unequal. In MySQL, the equality operator (=) returns 1 if both operands have the same value and 0 otherwise. The following MySQL query shows the equality condition -

mysql> Select tender_value From estimated_cost WHERE id = 3;
Copy after login

The above query shows the equality condition because the column id is equal to the integer value.

mysql> Select tender_value From estimated_cost1 WHERE Name_company = 'Chd Ltd.';
Copy after login

The above query shows the equality condition because the column Name_company is equal to the string value.

The above is the detailed content of Write a MySQL query that shows equality conditions?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template