<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>O!Hacker Blog &#187; MySql</title>
	<atom:link href="http://ohacker.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://ohacker.com</link>
	<description>anything to hack</description>
	<lastBuildDate>Thu, 12 Aug 2010 05:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MYSQL 外键定义</title>
		<link>http://ohacker.com/2009/04/19/mysql-foreign-key-defined/</link>
		<comments>http://ohacker.com/2009/04/19/mysql-foreign-key-defined/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 03:29:00 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://ohacker.com/2009/04/19/mysql-%e5%a4%96%e9%94%ae%e5%ae%9a%e4%b9%89/</guid>
		<description><![CDATA[MYSQL 外键定义建立外键的前提： 本表的列必须与外键类型相同(外键必须是外表主键)。外键作用： 使两张表形成关联，外键只能引用外表中的列的值！指定主键关键字： foreign key(列名)引用外键关键字： references (外键列名)事件触发限制: on delete和on update ,可设参数cascade(跟随外键改动),restrict(限制外表中的外键改动),set Null(设空值）,set Default（设默认值）,[默认]no action例如： outTable表 主键 id 类型 int创建含有外键的表： CREATE TABLE temp&#40; id int, name char&#40;20&#41;, FOREIGN KEY&#40;id&#41; REFERENCES outTable&#40;id&#41; ON DELETE cascade ON UPDATE cascade &#41;; 说明：把id列 设为外键 参照外表outTable的id列 当外键的值删除 本表中对应的列筛除 当外键的值改变 本表中对应的列值改变。 相关日志暂无相关日志]]></description>
		<wfw:commentRss>http://ohacker.com/2009/04/19/mysql-foreign-key-defined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySql 主键自动增长</title>
		<link>http://ohacker.com/2009/04/15/mysql-%e4%b8%bb%e9%94%ae%e8%87%aa%e5%8a%a8%e5%a2%9e%e9%95%bf/</link>
		<comments>http://ohacker.com/2009/04/15/mysql-%e4%b8%bb%e9%94%ae%e8%87%aa%e5%8a%a8%e5%a2%9e%e9%95%bf/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 15:45:00 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://ohacker.com/2009/04/15/mysql-%e4%b8%bb%e9%94%ae%e8%87%aa%e5%8a%a8%e5%a2%9e%e9%95%bf/</guid>
		<description><![CDATA[方法一：id int auto_increment not null,name varchar(100) null,primary key(id)方法二：ID integer primary key auto_increment not null,name varchar(100) null 相关日志暂无相关日志]]></description>
		<wfw:commentRss>http://ohacker.com/2009/04/15/mysql-%e4%b8%bb%e9%94%ae%e8%87%aa%e5%8a%a8%e5%a2%9e%e9%95%bf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
