RosettaCodeData/Task/Thue-Morse/SQL/thue-morse.sql
2023-07-01 13:44:08 -04:00

1 line
122 B
SQL

with recursive a(a) as (select '0' union all select replace(replace(hex(a),'30','01'),'31','10') from a) select * from a;