Steve
InstantDB accepts a fixed set of values or the results from a single select as the values
for an insert. It doesn't accept multiple selects as the values for an insert.
If you need to use multiple inserts then you'll have to do a little bit of programming to
do the individual selects and then use the results to construct the insert.
Pete
----- Original Message -----
From: "Steve Carton" <scarton@retrievalsystems.com>
To: <instantDB@enhydra.org>
Sent: Friday, March 30, 2001 8:17 PM
Subject: InstantDB: How do I insert a value from a select statement?
> This doesn't work. How do I fill in the values
> from two select statements?
>
> e insert into linksubjects (LID,SID) values
> ({SELECT __IDB_INTERNAL last_value FROM TEXT("ID")
> IN TABLE links FROM links},{select SID from
> subjects where subject='OmniMark' ignore case});
> Steve Carton
> 703/749-0012
> www.retrievalsystems.com
>
> -----------------------------------------------------------------------------
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|