본문 바로가기
반응형

PostgreSQL8

[iBATIS] The column index is out of range: 1, number of columns: 0 아래와 같은 메시지가 출력 된다면... javax.servlet.ServletException: --- The error occurred in /sql/board.postgresql.xml. --- The error occurred while applying a parameter map. --- Check the ArticleProperties. --- Check the parameter mapping for the 'idnum' property. --- Cause: org.postgresql.util.PSQLException: The column index is out of range: 1, number of columns: 0. org.apache.struts.chain.ComposableReques.. 2007. 9. 10.
[JSP] How to use JDBC for PostgreSQL I can't write in korean right now -_-; 1. download jdbc driver from here. 2. Simply you should put the driver in $CATALINA_HOME/webapps/ROOT/WEB-INF/lib. 3. restart your tomcat. I'll show you simple jsp code. 2007. 7. 11.
[PostgreSQL] 접속하기 su - postgres로 계정 변경 psql -U postgres DB명 으로 접속 \d 하면 테이블 볼 수 있음 \d 테이블명 하면 스키마 볼 수 있음 아..어렵다..-_- php에서 접속하는 방법을 알아봐야겠다 2007. 3. 31.
[PostgreSQL] 쿼리 몇가지.. 아...참으로 난감하다.. 사용하던 DB가 주로 MySQL이다보니 예전 버릇대로 작성하다보면 쿼리 에러 -_-;; 두가지만 살펴본다 ㅎㅎ 1. join mysql 4버전 이후로 subquery가 지원되기 때문에 join을 의외로 많이 사용하게 되는데, 기능 많고 좋기로 유명한 PostgreSQL이 그런걸 지원 안할리가 있나.. A와 B 테이블이 있다고 가정하면... "select A.a, A.b, B.b from A, B where A.a=B.a;"로 사용한다. 이 쿼리는 내 기억에 mysql에서도 먹었던 쿼리 같은데..암튼.. mysql에서는 이런형식 보다는 ()로 둘러싼 쿼리를 많이 사용했었다. 하지만 예제의 쿼리가 SQL 몇인가에서 사용하는 정식 쿼리일 것이다..아마도..ㅡㅡ;; 2. limit ".. 2007. 3. 31.
반응형