CHAR(n1[,n2...])

Description: Returns a character representation of the ASCII codes given by values of n.

Interprets the arguments as integers and skips NULL values.

Example:

  • CHAR(83,113,76) returns SqL.

See also: ASCII()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition 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.