in SQL, char() converts an integer to a character (e.g., char(101) returns ‘e’). What’s the reverse function of char() (e.g., convert ‘e’ to 101)?
in SQL, char() converts an integer to a character (e.g., char(101) returns ‘e’). What’s
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ORD()orASCII(), though they’re not strictly a reverse since they will only handle the first character of the string passed in whereasCHAR()can build a string from a list of digits.As per Michael Buen’s answer it’s worth noting that
ORD()is MySql-only, whereasASCII()is more widely supported but doesn’t handle multi-byte characters.