PostgreSQL Linux安裝及使用,簡易手冊一,配置方法:1,首先下載任意版本的PostgreSQL For Linux X86_64wget http://downloads.enterprisedb.com/postgresql/postgresql-8.4.1-1-linux-x64.bin2,文字模式設定[root@imdba.cn ~]# ./postgresql-8.4.1-1-linux-x64.bin –mode text ———————————————————
¤PostgreSQL version: 8.0¤Operating system: Microsoft Windows 2003¤Short description: pg_get_serial_sequence can not find a table that existing.¤Details:I created one table via sql command like this:CREATE TABLE tTestTable {FId bigint NOT NULL
MySQL 是一條輕快的小海豚,但是缺少很多現代關聯式資料庫應有的特色,例如:參考完整性,視圖,觸發器等。因此,如果你需要開發一個電子商務的網站,需要這些功能的話,你或許應該考慮 PostgreSQL 了。本文將通過其在 Red Hat 7.1 上安裝過程,簡要介紹其用法。 PostgreSQL 的官方為: ftp://ftp.postgresql.org/pub/v7.1.3/postgresql-7.1.3.tar.gz http://www.postgresql.org/
NameDROP TABLE -- remove a tableSynopsisDROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]DescriptionDROP TABLE removes tables from the database. Only its owner can drop a table. To empty a table of rows without destroying the table, use
PostgreSQL是通過角色來管理資料庫存取權限的,我們可以將一個角色看成是一個資料庫使用者,或者一組資料庫使用者。角色可以擁有資料庫物件,如表、索引,也可以把這些對象上的許可權賦予其它角色,以控制哪些使用者對哪些對象擁有哪些許可權。 一、資料庫角色: 1. 建立角色: CREATE ROLE role_name; 2. 刪除角色: DROP ROLE role_name; 3. 查詢角色: 檢查系統資料表pg_roles,如: