2006-04-06から1日間の記事一覧
hellodb=# \q参考ページ:http://www.atmarkit.co.jp/flinux/rensai/postgres02/postgres02.html
hellodb=# select * from test; shainno | shimei - 1 | munetika (1 row)
hellodb=# insert into test (shainno,shimei) values(1,'munetika'); INSERT 17148 1
hellodb=# \d test Table "public.test" Column | Type | Modifiers - shainno | integer | shimei | text |
hellodb=# \d List of relations Schema | Name | Type | Owner - public | test | table | postgres (1 row)
なんか作る hellodb=# create table test ( shainno number,shimei text);
(postgres)$ psql hellodb
(postgres)$ createdb hellodb
(postgres)$ initdb デーモンの起動 (postgres)$ postmaster -S -i
# passwd postgres $ su - postgres
インストールはインストーラがよきに計らってくれた。