<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=MySQL_Tutorial%2FTrigger%2FIntroduction</id>
		<title>MySQL Tutorial/Trigger/Introduction - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=MySQL_Tutorial%2FTrigger%2FIntroduction"/>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=MySQL_Tutorial/Trigger/Introduction&amp;action=history"/>
		<updated>2026-05-24T21:22:37Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.sqle.ru/index.php?title=MySQL_Tutorial/Trigger/Introduction&amp;diff=295&amp;oldid=prev</id>
		<title> в 13:44, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=MySQL_Tutorial/Trigger/Introduction&amp;diff=295&amp;oldid=prev"/>
				<updated>2010-05-26T13:44:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:44, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.sqle.ru/index.php?title=MySQL_Tutorial/Trigger/Introduction&amp;diff=296&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=MySQL_Tutorial/Trigger/Introduction&amp;diff=296&amp;oldid=prev"/>
				<updated>2010-05-26T09:49:43Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Activation Time==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Use BEFORE to perform an action prior to the change being made in the table.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use AFTER  to perform an action after the changes are made in the table.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;When you choose AFTER, you cannot change the values of the incoming query.&amp;lt;/p&amp;gt;&lt;br /&gt;
13. 1. Introduction&lt;br /&gt;
13. 1. 1. &lt;br /&gt;
&amp;lt;A href=&amp;quot;/Tutorial/MySQL/0260__Trigger/TheCREATETRIGGERStatement.htm&amp;quot;&amp;gt;The CREATE TRIGGER Statement&amp;lt;/a&amp;gt;&lt;br /&gt;
13. 1. 2. &lt;br /&gt;
Activation Time&lt;br /&gt;
13. 1. 3. &lt;br /&gt;
&amp;lt;A href=&amp;quot;/Tutorial/MySQL/0260__Trigger/OLDandNEWKeywords.htm&amp;quot;&amp;gt;OLD and NEW Keywords&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== OLD and NEW Keywords==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Two keywords are unique to SQL statements used in defining triggers: OLD and NEW.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;These keywords allow you to refer to the data before and after the activating event takes place.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, OLD.&amp;lt;fieldname&amp;gt;, NEW.&amp;lt;fieldname&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
13. 1. Introduction&lt;br /&gt;
13. 1. 1. &lt;br /&gt;
&amp;lt;A href=&amp;quot;/Tutorial/MySQL/0260__Trigger/TheCREATETRIGGERStatement.htm&amp;quot;&amp;gt;The CREATE TRIGGER Statement&amp;lt;/a&amp;gt;&lt;br /&gt;
13. 1. 2. &lt;br /&gt;
&amp;lt;A href=&amp;quot;/Tutorial/MySQL/0260__Trigger/ActivationTime.htm&amp;quot;&amp;gt;Activation Time&amp;lt;/a&amp;gt;&lt;br /&gt;
13. 1. 3. &lt;br /&gt;
OLD and NEW Keywords&lt;br /&gt;
&lt;br /&gt;
== The CREATE TRIGGER Statement==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The CREATE TRIGGER statement is used to define a trigger.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The CREATE TRIGGER statement associates it with changes occurring in a table.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It has the following syntax:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
CREATE TRIGGER &amp;lt;name&amp;gt; &amp;lt;time&amp;gt; &amp;lt;event&amp;gt;&lt;br /&gt;
ON &amp;lt;table&amp;gt;&lt;br /&gt;
FOR EACH ROW&lt;br /&gt;
&amp;lt;body statements&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&amp;lt;p&amp;gt;With the time and event, you must choose from an enumerated set of options:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;CREATE TRIGGER &amp;lt;name&amp;gt; [BEFORE | AFTER] [INSERT | UPDATE | DELETE]&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>