<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hello,<br><br>I have the following plpgsql function the output are 3 values. i need to insert these values to the table.<br>when i run the function, only the first value of the result are inserted <br><img alt=""><img alt=""><img alt="">how i can insert the rest of the result to the table<br><br>CREATE OR REPLACE FUNCTION eehab(integer) RETURNS integer AS<br><br>declare<br>mypoint alias for $1;<br>myresult integer;<br><br>begin<br><br>select into myresult distinct o from ramadan where o=mypoint or <br>a=mypoint union select distinct a from ramadan where o=mypoint or a=mypoint;<br><br>insert into eehab values (myresult);<br><br>return myresult;<br><br>end;<br><br>'LANGUAGE 'plpgsql' <br><br><br>kind regards<br><br><br><br /><hr />Discover the new Windows Vista <a href='http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>