<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.zhouba.cz/index.php?action=history&amp;feed=atom&amp;title=Variables_in_SQL</id>
	<title>Variables in SQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.zhouba.cz/index.php?action=history&amp;feed=atom&amp;title=Variables_in_SQL"/>
	<link rel="alternate" type="text/html" href="https://wiki.zhouba.cz/index.php?title=Variables_in_SQL&amp;action=history"/>
	<updated>2026-04-08T22:56:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.zhouba.cz/index.php?title=Variables_in_SQL&amp;diff=117&amp;oldid=prev</id>
		<title>Garak: Created page with &quot;&lt;pre&gt; WITH vars as (   SELECT 'my-very-long-long-name' as foo,          112098237449803127134987 as num,          '{&quot;hello&quot;:&quot;there&quot;}'::json as js ) SELECT vars.foo, vars.js-&gt;'...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.zhouba.cz/index.php?title=Variables_in_SQL&amp;diff=117&amp;oldid=prev"/>
		<updated>2025-10-15T11:46:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; WITH vars as (   SELECT &amp;#039;my-very-long-long-name&amp;#039; as foo,          112098237449803127134987 as num,          &amp;#039;{&amp;quot;hello&amp;quot;:&amp;quot;there&amp;quot;}&amp;#039;::json as js ) SELECT vars.foo, vars.js-&amp;gt;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
WITH vars as (&lt;br /&gt;
  SELECT 'my-very-long-long-name' as foo,&lt;br /&gt;
         112098237449803127134987 as num,&lt;br /&gt;
         '{&amp;quot;hello&amp;quot;:&amp;quot;there&amp;quot;}'::json as js&lt;br /&gt;
)&lt;br /&gt;
SELECT vars.foo, vars.js-&amp;gt;'hello', num / 2&lt;br /&gt;
FROM vars;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Garak</name></author>
	</entry>
</feed>