SQL is a really cool language ... palindromes (word, palindrome, start, length) AS ( -- This part just creates the even/odd semantics SELECT word, substring(word, start, x), start, x FROM starts CROSS JOIN (VALUES(0), (1)) t(x) UNION ALL -- This part ...
↧