출처: http://www.davidghedini.com/pg/entry/install_postgresql_9_on_centos This post will cover installing and basic configuration of PostgreSQL 9.x on CentOS. We will install PostgreSQL 9 using the PostgreSQL repository and yum. The same procedure can be used to install PostgreSQL 9 on Red Hat and Fedora using the appropriate rpm. Optionally, we'll also see how to install PostGIS. As the directory..
테이블 생성 쿼리 생성 함수 CREATE OR REPLACE Function pg_get_tabledef(text) RETURNS text AS $$ DECLARE tabledef TEXT; dotpos integer; tablename text; schemaname text; prevcol text; coltype text; notnull1 boolean; rec record; oidcheck boolean; BEGIN dotpos:=strpos($1,'.'); if dotpos = 0 then schemaname:='public'; tablename:=substr($1,dotpos+1); else schemaname:=substr($1,1,dotpos-1); tablename:=substr($1,do..
현재 mybatis는 3.1.1 까지 나와 있다.하지만 뭐가 문제인지 spring 3.1.1에서 같이 사용해보니 아래와 같은 오류가 난다. java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransactionFactory.newTransaction(Ljava/sql/Connection;)Lorg/apache/ibatis/transaction/Transaction; 그래서 3.1.0으로 해봤으나 결과는 같은 오류가 났다.다시 버전을 하나더 내려서 3.0.6으로 해봤더니 정상적으로 동작하는걸 확인할 수 있었다. ===============================================================..
- Total
- Today
- Yesterday