Reprinted from http://zhenghaoju700.blog.163.com/blog/static/13585951820116782843994/Install a PostgreSQL first (see Supplemental knowledge)Compare Oracle PL/SQLDbms_output.put_line ("This is a log") in PL/SQL; Simple commissioning is possibleOf
Today, a netizen asked PostgreSQL 9.0 how to debug functions in the group. I remember there was a plug-in named edb-debugger in 8.3 that could be used. there is no 9.0 database at hand, so I tested it and it could not be used at 9.1. The result is
1. Useful LinksPostgreSQL Common small functionssome string manipulation functions of the PostgreSQL databasefunction called in PostgreSQL functionPostgreSQL Learning Manual (Functions and Operators )A simple way to get started with PostgreSQL
How to get the number of rows affected by the normal operation, PostgreSQL inside has a built-in variable diagnostics and Row_count can do this. First, the environment: Db:9.4beta3 Second, prepare: postgres=# CREATE TABLE test (id int); CREATE
SOURCE side to open the target of the relevant access rights target: 1. Create a view of the remote table create view V_bill_tbl_version_update_control_info as SELECT * from Dblink (' hostaddr= 10.10.10.8 port=4321 dbname=postgres user=postgres
1. Exception error HandlingIn the Pl/pgsql function, if there is no exception capture, the function exits directly when an error occurs, and the things associated with it are rolled back. We can catch and recover the exception by using the Begin
Anyone familiar with MySQL may know that MySQL has an "insert ignore" syntax to ignore existing records. PostgreSQL does not currently provide such syntax, but it can be replaced by other methods.T_girl = # \ d insert_ignore Table "ytt.
The students who built the partitioned table believe that adding partition table is a headache, if there is a monthly partition and a day partition, and is through the "_YYYYMMDD" or "_yyyymm" suffix to partition, then you can use this function to
Anyone familiar with MySQL may know that MySQL has an "insert ignore" syntax to ignore existing records. PostgreSQL does not currently provide such syntax, but it can be replaced by other methods.
The following shows the sample table structure and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.