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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database insert

Status
Not open for further replies.

Eduu

Programmer
Feb 9, 2006
17
YU
How do I insert a record into one table, using a calculated field from another, without having to first store the value in a variable?
 
You may have expand on your criteria here - this request is a little vague to go on... Roy
aka BanditWk
Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)
 
Ok something like thiS
INSERT INTO XXX VALUES(SELECT SUM(XXX) FROM YYY) or something
 
I found it. The syntax is "INSERT INTO....SELECT..."
Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top