sql generate unique table/view name

Posted by Claudiu on Stack Overflow See other posts from Stack Overflow or by Claudiu
Published on 2010-06-08T23:02:37Z Indexed on 2010/06/08 23:12 UTC
Read the original article Hit count: 181

Filed under:
|

I want to create some mad robust code. I want to take a query as a string, create a temporary view / table to store the results, use it, then drop the table. I want to use a name that is guaranteed to not already exist in the database. Is there an SQL command to generate a unique table name? I'm using postgresql if this is implementation-specific.

© Stack Overflow or respective owner

Related posts about sql

Related posts about postgresql