• Home
  • SQL / MySQL
  • Aggregate Functions
  • Backup Load
  • Command MySQL
  • Cursor
  • Data Type
  • Database
  • Date Time
  • Engine
  • Event
  • Flow Control
  • FullText Search
  • Function
  • Geometric
  • I18N
  • Insert Delete Update
  • Join
  • Key
  • Math
  • Procedure Function
  • Regular Expression
  • Select Clause
  • String
  • Table Index
  • Transaction
  • Trigger
  • User Permission
  • View
  • Where Clause
  • XML

String Compare « String « SQL / MySQL






  1. SQL / MySQL
  2. String
  3. String Compare
1.Compare String in where clause
2.String comparisons are performed from left to right, one character at a time:
3.The two strings '4200' and '4200.0' are not the same:
4.Case-insensitive nature of string comparisons:
5.String comparisons in MySQL are not case sensitive by default:
6.To make a string comparison case sensitive, cast (convert) one of the strings to binary form by using the BINA
7.To make a string comparison not case sensitive, convert both strings to the same lettercase using UPPER( ) or
8.NULL values fail comparisons both with < and with >=

java2s.com  | © Demo Source and Support. All rights reserved.