Results 1 to 2 of 2

Thread: temp table

  1. #1
    Join Date
    Dec 2002
    Location
    Madrid - Spain
    Posts
    422
    Provided Answers: 1

    Thumbs up Unanswered: temp table

    Hi,

    how I can know whether a temp table exist in database.

    Thank you.

  2. #2
    Join Date
    Aug 2002
    Location
    Belgium
    Posts
    534
    Hi a temporary table is not created in the database. It is database independant.

    select * from customer into temp cust_temp;

    creates a temp table for session xx. If the session is disconnected, the temp table is automatically dropped.

    database sysmaster;
    select * from sysptnhdr a, sysptprof b
    where b.tabname = 'cust_temp'
    and a.partnum=b.partnum;

    will return the characteristics of this temp table.

    or

    onstat -g ses <sess-id>

    will return the list of temp tables per session.
    rws

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •