윈 토토 : 문서 : 9.4 : 윈 토토 | |||
---|---|---|---|
PostgreSQL : 문서 : 9.4 : 스포츠 토토 적 서브 트랜잭션 | PostgreSQL : 문서 : 9.4 : PL/토토 캔 -토토 캔 Prossural Language | CHAPTER 43. PL/PYTHON -PYTHON PROCESURAL LANGUAGE | 토토 결과 : 문서 : 9.4 : 환경 변수 |
theplpy모듈도 함수를 제공합니다plpy.debug (msg), plpy.log (MSG), plpy.info (MSG), plpy.notice (msg), plpy.warning (MSG), plpy.error (msg)및plpy.fatal (MSG). plpy.error
andplpy.fatal
실제로 Python Exception을 제기하는 경우, 가입하지 않으면 호출 쿼리로 전파되어 현재 트랜잭션 또는 서브 트랜잭션이 중단됩니다..Raine Plpy.error (msg)andyase plpy.fatal (MSG)전화와 동일합니다plpy.error
andplpy.fatal
10082_10299log_min_messages및client_min_messages구성 변수. 보다롤 토토 : 문서 : 9.4 : 서버 구성자세한 내용은
다른 메이저 토토 사이트 함수 세트는입니다.plpy.quote_literal (String), plpy.quote_nullable (String)및plpy.quote_ident (String). 그것들은에 설명 된 내장 인용 기능과 동일합니다PostgreSQL : 문서 : 9.4 : 스포츠 토토 함수 및 연산자. 임시 쿼리를 구성 할 때 유용합니다. PL/파이썬에서 동적 SQL에 해당하는예 40-1
plpy.execute ( "tble set %s = %s 업데이트 key = %s" %( plpy.quote_ident (colname), plpy.quote_nullable (newValue), plpy.quote_literal (keyvalue)))