<?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>ststyle.net &#187; tips</title>
	<atom:link href="http://www.ststyle.net/weblog/archives/category/database/postgresql/tips-postgresql-database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ststyle.net/weblog</link>
	<description>Just another ststyle techlog</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:53:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PostgreSQL::テーブル定義の変更</title>
		<link>http://www.ststyle.net/weblog/archives/467</link>
		<comments>http://www.ststyle.net/weblog/archives/467#comments</comments>
		<pubDate>Wed, 11 Nov 2009 03:50:46 +0000</pubDate>
		<dc:creator>ststyle</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.ststyle.net/weblog/?p=467</guid>
		<description><![CDATA[メモ
]]></description>
			<content:encoded><![CDATA[<p>メモ</p>
<pre class="brush: bash; auto-links: false;">

テーブルの作成
CREATE TABLE テーブル名;
テーブルの削除
DROP TABLE テーブル名;
テーブル名の変更
ALTER TABLE テーブル名 RENAME TO 新テーブル名;
列の追加
ALTER TABLE テーブル名 ADD COLUMN 列の定義;
列の削除
ALTER TABLE テーブル名 DROP COLUMN 列名;
列名の変更
ALTER TABLE テーブル名 RENAME COLUMN 列名 TO 新列名;
制約の追加
ALTER TABLE テーブル名 ADD CONSTRAINT 制約名 UNIQUE ( 列名 [, 列名]... );
NOT-NULL制約の追加
ALTER TABLE テーブル名 ALTER COLUMN 列名 SET NOT NULL;
制約の削除
ALTER TABLE テーブル名 DROP CONSTRAINT 制約名;
NOT-NULL制約の削除
ALTER TABLE テーブル名 ALTER COLUMN 列名 DROP NOT NULL;
デフォルトの追加
ALTER TABLE テーブル名 ALTER COLUMN 列名 SET DEFAULT デフォルト値;
デフォルトの削除
ALTER TABLE テーブル名 ALTER COLUMN 列名 DROP DEFAULT;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ststyle.net/weblog/archives/467/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgreSQL Escape Tips</title>
		<link>http://www.ststyle.net/weblog/archives/465</link>
		<comments>http://www.ststyle.net/weblog/archives/465#comments</comments>
		<pubDate>Mon, 09 Nov 2009 02:46:39 +0000</pubDate>
		<dc:creator>ststyle</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.ststyle.net/weblog/?p=465</guid>
		<description><![CDATA[Insert時の時など文字列に改行コード(\r\n)等が含まれる場合に
警告が表示されます。
対応としましては
Hintにあるように文字列の前に&#8221;E&#8221;を付与する
]]></description>
			<content:encoded><![CDATA[<p>Insert時の時など文字列に改行コード(\r\n)等が含まれる場合に</p>
<p>警告が表示されます。</p>
<p>対応としましては</p>
<p>Hintにあるように文字列の前に&#8221;E&#8221;を付与する</p>
<pre class="brush: bash; auto-links: false;">

WARNING:&nbsp; nonstandard use of \\ in a string literal
HINT:&nbsp; Use the escape string syntax for backslashes, e.g., E&#039;\\&#039;.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ststyle.net/weblog/archives/465/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
