rain13 Posted August 31, 2013 Share Posted August 31, 2013 Hello How can I insert for all users whose ID is in range from a to b? I do this?I want to do something like:INSERT INTO usergroups VALUES( 2 to 50,6,1); Link to comment Share on other sites More sharing options...
birbal Posted September 1, 2013 Share Posted September 1, 2013 Before inserting the row does not exist. how do you plan to know its id range prior to insertion? what you want to do actually? Link to comment Share on other sites More sharing options...
rain13 Posted September 1, 2013 Author Share Posted September 1, 2013 (edited) For now I have fixed range, but it would be also useful to know how to use select there. For now I just generated insert statements within for loop, but still would like to know for future reference. Edited September 1, 2013 by SoItBegins Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now