Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I create an insert query using both Select and literal values

Status
Not open for further replies.

rambleon

Programmer
Mar 6, 2004
130
IL
Hi
I'd like to do the following
Insert into TableA(Fld1, Fld2, Fld3)
Values(Select Fld1 from TableB, 123, "XYZ")

Fld1 & Fld2 in TableA are the primary index

How can I combine a Select statement and literal values
in 1 insert.

Thanks for any help

Rambleon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top