間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

2006-04-22から1日間の記事一覧

日付仕様

テストデータ http://mono-space.net/jpug_study.txt 以下はエラー select south.t, min(east.t) , min(east.t) - south.t from east,south where (east.t > (south.t + time '00:10')) group by south.t ; ERROR: operator is not unique: time without tim…

素敵仕様("と''の違い)

sqlだと 以下で通る文が select count(*) from pg_class where relkind = 'r'; plpgsqlだと CREATE OR replace FUNCTION myfunc3() RETURNS integer AS ' DECLARE arg1 integer; BEGIN select count(*) into arg1 from pg_class where relkind = "r" RETURN …

plpgsql

CREATE FUNCTION hello() RETURNS text AS ' BEGIN RETURN ''Helo, World''; END 'LANGUAGE 'plpgsql'; RETURN arg1 + arg2; CREATE OR REPLACE FUNCTION myfunc2(int4, int4) RETURNS int4 AS $BODY$ DECLARE arg1 alias FOR $1; arg2 alias FOR $2; BEGIN …

pgadminでのDB作成

[サーバー]-[PostgreSQL Database Server 8.1] [データベース][プロパティ]-[新しいデータベース]

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。