當使用WHERE子句與QUOTE()函數一起使用時,輸出取決於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)
以上是MySQL QUOTE() 函數如何處理比較值?的詳細內容。更多資訊請關注PHP中文網其他相關文章!