06 2017 档案
摘要:Trigger Procedures PL/pgSQL can be used to define trigger procedures on data changes or database events. A trigger procedure is created with the CREAT
阅读全文
摘要:Errors and Messages 1. Reporting Errors and Messages Use the RAISE statement to report messages and raise errors. The level option specifies the error
阅读全文
摘要:Cursors Rather than executing a whole query at once, it is possible to set up a cursor that encapsulates the query, and then read the query result a f
阅读全文
摘要:利用python(我用的是python2.7版本)连接postgresql数据库,这里使用psycopg2这个插件 官网下载psycopg2 2.5.1.tar.gz:http://initd.org/psycopg/ 过程很简单,如下:
阅读全文
摘要:Control Structures of PL/SQL Control structures are probably the most useful (and important) part of PL/pgSQL.With PL/pgSQL's control structures, you
阅读全文
摘要:最近在看postgresql的查询计划,在查询中对表的扫描计划大概有如下几种: 这里就把自己的理解写下来,欢迎大家批评指正: 1)对于Seq Scan很好理解,就是按照表的记录的排列顺序从头到尾依次检索扫描,每次扫描要取到所有的记录。这也是最简单最基础的扫表方式,扫描的代价比较大; 2)对于Inde
阅读全文
摘要:【问题】 F:\STLport 5.1.4\build\lib nmake /f msvc.mak cl /nologo /W4 /Wp64 /GR /EHsc /Zm800 /GL /MD /Zi /O2 /DWIN32 /D_WINDO WS /DNDEBUG /I../../stlport /
阅读全文
摘要:今天用Visual Studio 2010编译postgresql工程时突然遇到下面这个编译错误: fatal error LINK1123:failure during conversion to COFF:file invalid or corrupt 试了很多方法都没有用,包括微软官方的说明
阅读全文
摘要:1.Structure of PL/pgSQL The structure of PL/pgSQL is like below: A label is only needed if you want to identify the block for use in an EXIT statement
阅读全文
浙公网安备 33010602011771号