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

3 lines
100 B
MySQL
Raw Permalink Normal View History

2013-10-27 22:24:23 +00:00
SET @txt = REPLACE('In girum imus nocte et consumimur igni', ' ', '');
SELECT REVERSE(@txt) = @txt;