postgresql

PostgreSQLとMySQLのSelect文の結果をテキスト出力する

Select文の結果をテキストファイルへ出力したかったのだが、調べたらできることがわかったので、そのメモ。 PostgreSQL copyというコマンドが使える。PostgreSQL-7.1-ja : COPY PostgreSQL-8.1-ja : COPY 使用例 以下の例は、PostgreSQL Version 8.1.11 で実…

coLinux に Apache,PHP,Postgresの開発環境構築メモ

what Apache,PHP,Postgresの開発環境を coLinux に構築することになったのでメモ。 インストールするバージョン Apache 2.0.63 PHP 4.4.8 Postgres 8.1.11 文字コード EUC-JP OS % uname -a Linux debian 2.6.22.18-co-0.7.3 #1 PREEMPT Sat May 24 22:27:30…

How to do case-insensitive searching with Postgresql

SELECT subject FROM topics WHERE subject ~* 'JBUILDER';http://www.devdaily.com/blog/Content/2/7/62/

postgres log 設定

http://hibi.hamazo.tv/e37759.html

postgres カラム追加

alter table [table_name] add [column_name] [データ型] ;http://www.postgresql.jp/document/pg653doc/ej/user/sql-altertable.htm

postgres dump

○postgres dump の方法1.SSH で サーバーにログイン2.ファイルの用意(適切な管理権限のあるフォルダ内で行いましょう) 例: /home/postgres/backup/foo.bak3.ファイルのパーミッションを777に変更。4.su - postgres5.pg_dump [db_name] > /home/…