반응형
1. 유저생성
create user [User] with password '[1234]' createdb; |
2. 유저권한변경
alter user [User] WITH CREATEDB CREATEUSER; |
3. 필드추가
alter table [tableName] add columnName [TYPE]; |
4. 기본 키 재생성(remove and create)
alter table [tableName] drop constraint [constraint]; alter table [tableName] add constraint [constraint] primary key ([filed], [filed]); |
4. PostgreSQL UTF8 설정
Windows Location : ~postgresql/[version]/data/postgresql.conf Linux Location : /usr/local/pgsql/data/postgresql.conf
|
반응형
'program' 카테고리의 다른 글
[Delphi] Borland Database Engine (error $2501) (1) | 2013.11.27 |
---|---|
[Delphi] GifImage 등록 (0) | 2013.11.21 |
[Delphi] key code (0) | 2013.11.14 |
[Delphi] DecisionCube 컴포넌트 등록 (0) | 2013.11.14 |
[Delphi] 단축키 정리 (0) | 2013.11.12 |