Skip to content

Instantly share code, notes, and snippets.

@le0pard
Created May 14, 2011 15:45
Show Gist options
  • Save le0pard/972335 to your computer and use it in GitHub Desktop.
Save le0pard/972335 to your computer and use it in GitHub Desktop.
Куайн, Запрос который выводит сам себя
select a || ' from (select ' || quote_literal(a) || b || ', ' || quote_literal(b) || '::text as b) as quine' from (select 'select a || '' from (select '' || quote_literal(a) || b || '', '' || quote_literal(b) || ''::text as b) as quine'''::text as a, '::text as a'::text as b) as quine;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment