home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / informix / 3056 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!gatech!hubcap!dpotlur
  3. From: dpotlur@hubcap.clemson.edu (Potluri Dora)
  4. Subject: Help with Insert (ESQL/C)
  5. Message-ID: <1993Jan26.052310.12338@hubcap.clemson.edu>
  6. Keywords: ESQL/C, Informix, SE 5.00, SQL, Performance
  7. Organization: Clemson University
  8. Date: Tue, 26 Jan 1993 05:23:10 GMT
  9. Lines: 24
  10.  
  11.  
  12. Howdy!
  13.     I have a scienario where I need to insert into one table
  14. and one of the columns of the table is of serial datatype. After
  15. inserting into this table, I need to know what the column value
  16. is ( the serial type one) and insert this value into another 
  17. table where it is a foreign key.
  18.     I got the stuff working by inserting the row and then quering
  19. using the select statement. USing this value I insert into the next 
  20. table. 
  21.     Due to voluminous data we have, and to improve the performance
  22. I was thinking of eliminating the second query. Is there any other way
  23. that I could accomplish the same thing?( ie with out quering using the
  24. select statement?) .
  25.     I would appreicate if you can either mail me or post it on the
  26. news group.
  27.  
  28. Thanx
  29. Potluri Dora
  30. -- 
  31. Potluri Dora
  32. Information Systems Lab  
  33. Clemson University
  34. Clemson, sc 29631
  35.