Skip navigation.

极湖

无不用其“极”

PostgreSQL之rule设定查询方法

, ,

在PostgreSQL的提示符下,用"\d"或是"\d<头字母>"命令可以很方便的查询各种对象的定义。今天发现有一个叫rule的东西不能用这个命令,在网上搜索了一下才在PostgreSQL的官方网站上找到方法。原来,各种rule的定义保存在pg_rules之中,通过查询这个表格即可得到rule的定义,如:

select * from pg_rules;

select * from pg_rules where rulename='RULE_NAME';

select * from pg_rules where tablename='TABLE_NAME';

正则表达式:给HTML的属性值加引号Ubuntu 7.04下SCIM输入法的设置

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31