Time of Update: 2015-06-10
標籤:python postgresql mac 用Python寫了一個postgresql函數,感覺很爽 CREATE LANGUAGE plpythonu; postgresql函數CREATE OR REPLACE FUNCTION myfun1(text) RETURNS text AS$BODY$s = args[0]h = 0;n =
Time of Update: 2015-05-22
標籤:MySQL的2個常用函數unix_timestamp()與from_unixtime PostgreSQL並不提供,但通過PostgreSQL強大的擴充性可以輕鬆的解決問題。話說遠在天邊,盡在眼前,文檔看仔細,問題迎仞解。PostgreSQL 題供extract與date_part取epoch即可即unix_timestamp() = round(date_part(’epoch’,now()))from_unixtime(int) =
Time of Update: 2015-05-19
標籤:postgresql主從postgresql+slony-i安裝配置主從slon軟體:slony1-1.2.6http://slony.info/downloads/1.2/source/postgresql:http://www.postgresql.org/download/http://www.postgresql.org/ftp/source/v8.1.23/ 一、postgresql安裝 方法1.rpm包安裝postfresql:所需軟體包:postgresq
Time of Update: 2015-02-10
標籤: 最近一個月使用Postgresql的時候,經常遇到ltree的資料,感覺有些彆扭,可是有繞不過去。今天決心整理一下,以後使用方便一些。一、簡介 ltree是Postgresql的一個擴充類型,由兩位國外PostgreSQL貢獻者共同開發。網址如下:http://www.sai.msu.su/~megera/postgres/gist二、目的
Time of Update: 2015-01-15
標籤: 一、下載解壓1,下載postgresql-9.4.0-1-windows-x64-binaries.zip2,解壓postgresql-9.4.0-1-windows-x64-binaries.zip 到E:\二、添加使用者1,添加windows使用者,用於啟動PostgreSQL的windows服務net user postgres pgsqlpw /add /expires:never /password
Time of Update: 2015-01-07
標籤:postgresql 遠端連線 開啟 前言:之前只會配置postgresql的指定IP的遠程許可權,後來一個客戶想通過遠端連線postgre,想查看資料,但是她的IP經常發生變動,導致我每次都要重新再進行設定,後來終於找到了方法,現做如下記錄:只針對Windows服務找到pg_hba.conf設定檔,路徑一般情況下為postgre安裝目錄的data目錄下C:\Program
Time of Update: 2014-11-25
標籤:postgresql 交叉表 這裡我來示範下在POSTGRESQL裡面如何?交叉表的展示,至於什麼是交叉表,我就不多說了,度娘去哦。原始表資料如下:t_girl=# select * from score; name | subject | score -------+---------+------- 
Time of Update: 2014-11-25
標籤:postgresql cursor python sql 交叉表 這裡我來示範下在POSTGRESQL裡面如何?交叉表的展示,至於什麼是交叉表,我就不多說了,度娘去哦。原始表資料如下:t_girl=# select * from score; name | subject | score -------+--------
Time of Update: 2014-11-12
標籤:postgresqlPostgreSQL 功能龐大,對實現乘法這類運算有諸多的方法,今天我來簡單列舉下以下幾種便捷的途徑。比如我們要計算10!1、 可以用SQL給它展開:t_girl=# select 1*2*3*4*5*6*7*8*9*10 as multiply_10; multiply_10 ------------ 3628800
Time of Update: 2014-11-05
標籤:postgresql 遍曆 遞迴 oracle path 昨天我用MySQL來實現了ORACLE的遞迴語句CONNECT BY, 看起來稍複雜些。今天來看看POSTGRESQL如何?ORACLE的CONNECT
Time of Update: 2014-11-04
標籤:style io ar os sp strong 資料 on bs 1. 測試資料 表結構 一:CREATE TABLE fact_data( day_id
Time of Update: 2014-11-02
標籤:style blog http io color os ar 使用 for 1、use
Time of Update: 2014-10-31
標籤:python 資料庫 postgresql mysql crontab 刪除psql資料庫:(以資料庫Django名為例:)dropdb Django;建立資料庫並屬於django:createdb Django -O django當我們在Django中用了python manage.py
Time of Update: 2014-10-16
標籤:postgresql metasploit KaLi 串連 postgresql 資料庫 查看 postgresql 是否啟動,沒有啟動的話,使用 service postgresql start 命令啟動。啟動後查看是否啟動成功,連接埠是 5432,:650) this.width=650;"
Time of Update: 2014-10-13
標籤:style http color os 使用 strong sp 資料 on PostgreSQL 是什嗎?該怎麼發音?Postgres又是什嗎?PostgreSQL 讀作
Time of Update: 2014-09-25
標籤:blog http os ar 檔案 資料 2014 問題 on 最近裝了linux系統CentOs6.5,由於項目中要用到PostgreSQL,所以裝了9.2的版本。由於接觸linu
Time of Update: 2014-08-29
標籤:os strong 檔案 資料 sp on c 資料庫 sql Database Backup:D:\Program Files\PostgreSQL\9.2\bin>
Time of Update: 2014-08-13
標籤:blog http 使用 os 檔案 資料 for 2014 PostgreSQL
Time of Update: 2014-08-13
標籤:des os io strong for ar art div [sql] view plaincopy1、相當與mysql的show databases; [sql] view
Time of Update: 2014-07-26
標籤:style http color os 資料 io for art 系統:centos6.4 安裝postgresql9.3 (防火牆需要開啟5432連接埠) 添加yum源