pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shavonne Marietta Wijesinghe <shavonne.marietta@studioform.it>
To: pgsql-sql@postgresql.org
Subject: sql function
Date: Fri, 14 Oct 2005 14:47:53 +0200
Message-ID: <002801c5d0bd$7e640e50$1102a8c0@dream> (raw)

I have 2 schemas "operativo" and "autore" and they both have a table "PECDT00" 

i want to create a function with the following sql command (using the programme pgadmin 3) in pgadmin 3 there is a small wizard to fill when u create a function and u have to add the return type..

this is the sql statement i wanna do

DELETE FROM operativo.PECDT00; 
insert into operativo.PECDT00 (select * from autore.PECDT00);

what can i use ad the return type??

thank u
 

view thread (3+ messages)  latest in thread

Message-ID: <002801c5d0bd$7e640e50$1102a8c0@dream>
Permalink:  ../002801c5d0bd$7e640e50$1102a8c0@dream/
Also on:    postgresql.org/message-id/002801c5d0bd$7e640e50$1102a8c0@dream

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: shavonne.marietta@studioform.it
  Subject: Re: sql function
  In-Reply-To: <002801c5d0bd$7e640e50$1102a8c0@dream>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox