Using Operators with Strings
In the previous lesson, you saw how arithmetic and comparison operations were performed on numeric values. Now you’ll see the ways in which you can work with strings in MySQL.
Strings
A string is simply a collection of characters treated as a single data item, either returned from a database column that contains characters or enclosed in single quotes in a SQL statement. |
Comparison Operators
The comparison operators you are already familiar with translate to string values in a logical way. The equals and not equals operators work almost as you would expect, but MySQL is not case sensitive when comparing characters. ...
Get Sams Teach Yourself MySQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.