RosettaCodeData/Task/Palindrome-detection/SQL/palindrome-detection.sql

3 lines
100 B
MySQL
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
SET @txt = REPLACE('In girum imus nocte et consumimur igni', ' ', '');
SELECT REVERSE(@txt) = @txt;