Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Insert into question Expand / Collapse
Author
Message
Posted Friday, December 20, 2013 9:37 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, November 7, 2014 7:26 AM
Points: 50, Visits: 139
Hello
I need to insert records into a table, like this

TABLE BC
REF | Design | code
001 | teste |0001
001 | teste |0002
001 |teste |00xx , until it reaches 9999

with insert into command i only can insert a record of a time, is there another like in a cicle until code=9999

Thanks ins advance
Post #1525063
Posted Friday, December 20, 2013 9:42 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 9:04 PM
Points: 3,926, Visits: 8,921
Cross post. All replies on http://www.sqlservercentral.com/Forums/Topic1525065-1291-1.aspx


Luis C.
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1525067
Posted Friday, December 20, 2013 10:07 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, November 7, 2014 7:26 AM
Points: 50, Visits: 139
sorry, you are right
Post #1525082
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse