<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://sqlzoo.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;feed=atom&amp;action=history</id>
		<title>Date and time types - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;action=history"/>
		<updated>2013-06-19T15:11:23Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.4</generator>

	<entry>
		<id>http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;diff=1471&amp;oldid=prev</id>
		<title>Marek at 11:42, 17 July 2012</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;diff=1471&amp;oldid=prev"/>
				<updated>2012-07-17T11:42:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:42, 17 July 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SELECT * FROM t_dttest;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SELECT * FROM t_dttest;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='sql' class='def'&amp;gt;CREATE TABLE t_dttest(&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='sql' class='def &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;e-mysql&lt;/ins&gt;'&amp;gt;CREATE TABLE t_dttest(&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; a DATE,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; a DATE,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; b TIME,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; b TIME,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Marek</name></author>	</entry>

	<entry>
		<id>http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;diff=1470&amp;oldid=prev</id>
		<title>Marek: Created page with &quot;Date and time types. &lt;div class='ht'&gt; &lt;div class=params&gt;schema:scott&lt;/div&gt; &lt;div&gt; The SQL standard permits three types. DATE, TIME and TIMESTAMP. A TIMESTAMP includes a date an...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sqlzoo.net/w/index.php?title=Date_and_time_types&amp;diff=1470&amp;oldid=prev"/>
				<updated>2012-07-17T11:41:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Date and time types. &amp;lt;div class=&amp;#039;ht&amp;#039;&amp;gt; &amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt; &amp;lt;div&amp;gt; The SQL standard permits three types. DATE, TIME and TIMESTAMP. A TIMESTAMP includes a date an...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Date and time types.&lt;br /&gt;
&amp;lt;div class='ht'&amp;gt;&lt;br /&gt;
&amp;lt;div class=params&amp;gt;schema:scott&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
The SQL standard permits three types. DATE, TIME and TIMESTAMP.&lt;br /&gt;
A TIMESTAMP includes a date and a time.&lt;br /&gt;
Several engines use the word TIMESTAMP for a different purpose.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=sql class='tidy'&amp;gt;DROP TABLE t_dttest&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=sql class='setup'&amp;gt;CREATE TABLE t_peep&lt;br /&gt;
 (id INTEGER PRIMARY KEY&lt;br /&gt;
 ,name VARCHAR(50))&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-oracle'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATE,&lt;br /&gt;
  c TIMESTAMP);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  DATE '1962-05-20',&lt;br /&gt;
  TIMESTAMP '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-db2 e-access e-sqlite'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATE,&lt;br /&gt;
  b TIME,&lt;br /&gt;
  c TIMESTAMP);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  '1962-05-20',&lt;br /&gt;
  '10:32:16',&lt;br /&gt;
  '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-sqlserver'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATETIME,&lt;br /&gt;
  b DATETIME,&lt;br /&gt;
  c DATETIME);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  '1962-05-20',&lt;br /&gt;
  '10:32:16',&lt;br /&gt;
  '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def e-sybase'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATE,&lt;br /&gt;
  b TIME,&lt;br /&gt;
  c DATETIME);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  '1962-05-20',&lt;br /&gt;
  '10:32:16',&lt;br /&gt;
  '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATE,&lt;br /&gt;
  b TIME,&lt;br /&gt;
  c DATETIME);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  DATE '1962-05-20',&lt;br /&gt;
  TIME '10:32:16',&lt;br /&gt;
  TIMESTAMP '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang='sql' class='def'&amp;gt;CREATE TABLE t_dttest(&lt;br /&gt;
  a DATE,&lt;br /&gt;
  b TIME,&lt;br /&gt;
  c TIMESTAMP);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO t_dttest VALUES (&lt;br /&gt;
  DATE '1962-05-20',&lt;br /&gt;
  TIME '10:32:16',&lt;br /&gt;
  TIMESTAMP '1962-05-20 10:32:16');&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM t_dttest;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;ecomm e-mysql&amp;quot; style=&amp;quot;display: none&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{DATE and TIME ref}}&lt;/div&gt;</summary>
		<author><name>Marek</name></author>	</entry>

	</feed>