left

Description

Syntax

‘VARCHAR left (VARCHAR str)’

It returns the left part of a string of specified length

example

  1. mysql> select left("Hello doris",5);
  2. +------------------------+
  3. left ('Hello doris', 5)'1244;
  4. +------------------------+
  5. | Hello |
  6. +------------------------+

keyword LEFT