<br><div class="gmail_quote">2010/5/24 郭家成 <span dir="ltr"><<a href="mailto:iron1103@gmail.com">iron1103@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><span class="Apple-style-span" style="color: rgb(0, 0, 153); ">So, everything works fine without "CREATE VIEW", weird.</span></div></blockquote><div><br></div><div>I should have seen that earlier .. views don't have parameters, so that is why test 1-4 don't work. Views need to have existing columns. What is $1 supposed to be? A geometry column from a different table, or the same table? If you needs are only temporary, then explore the uses of "select * into <b>temp </b>tt from ..." then use tt like any other table until you don't need it anymore in the transaction, then it disappears out of sight.</div>

<div><br></div><div>-Mike</div></div>