Home >Database >Mysql Tutorial >How does the MySQL QUOTE() function handle comparison values?

How does the MySQL QUOTE() function handle comparison values?

PHPz
PHPzforward
2023-08-23 22:13:021504browse

MySQL QUOTE() 函数如何处理比较值?

When using the WHERE clause with the QUOTE() function, the output depends on the comparison value returned by the WHERE clause. The following example will be shown:

Example

mysql> Select Name, ID, QUOTE(Subject)AS Subject from Student WHERE Subject = 'History';

+-------+------+-----------+
| Name  | ID   | Subject   |
+-------+------+-----------+
| Aarav | 2    | 'History' |
+-------+------+-----------+

1 row in set (0.00 sec)

The above is the detailed content of How does the MySQL QUOTE() function handle comparison values?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete