I have开发者_开发问答 the following stored procedure, which returns 0 results but if the run the query by itself it result lot of results. What am i missing.
I have written the following function for Postgres and it works fine on my local windows machine when installed via pgAdmin. When I try to add it to my linux based sever install it throws compile erro
to replace multiple words, i\'m using looping thru all candidates, and replacing one by one. is there a better way?
I have a products schema and some tables there. Each table in products schema has an id, and by this id I can get this table name, e.g.
I have written a PL/PgSQL trigger and i need to save the query (in fact the result set) to variable. See below:
Is it possible to change the case of what you matched in REGEXP_REPLACE to upper or lower case, in Postgres 8+? In Perl you can use \'\\u\', \'\\U\', \'\\l\', and \'\\L\', but there doesn\'t seem to b
I know there\'re ways to access to query type, table names, oids etc. in trigger definitions: http://www.postgresql.org/docs/8.3/static/plpgsql-trigger.html
I am used to the Query Editor in SQL Server where one can freely write & execute T-SQL. How do I get the following code to execute in PostgreSQL without having to create a function out of it?
Can someone please explain to me why does COMMIT in this function returns EXCEPTION ? DECLARE XNar CURSOR (forDATE Varchar) IS
Hello i want to return a multiple row from a function but i have this persistant error anybody can give me a hand, thanks!!