Jump to content
  • Advertisement
Sign in to follow this  
fpsgamer

[SQL] Help formulating a query ...

This topic is 4160 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I don't really know SQL ... I simply hack and slash in these rare occasions when I need to cook up a query. I was hoping someone could help me phrase my query... Lets say I have two tables A and B. For each row in table A, I want to insert that row into table B if a condition is met. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by fpsgamer
Lets say I have two tables A and B. For each row in table A, I want to insert that row into table B if a condition is met.
INSERT INTO B SELECT * FROM A WHERE condition

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!