MySQL QUOTE() 函数如何与比较值配合使用?
当与 WHERE 子句一起使用时,该输出取决于 WHERE 子句返回的比较值。以下示例将展示 −
示例
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)
广告