MySQLString FunctionsREVERSE
REPEAT

REVERSEString Functions

FORMAT

Reverses a string.

Syntax

REVERSE(str)

Example

Enter values below to update the example in real time.

serial_no
check_code
devices
-- 시리얼 번호 역순 검증코드 생성
SELECT serial_no, REVERSE(serial_no) AS check_code
FROM devices;