Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 i want to insert records like this but...

Author  Topic 

asifbhura
Posting Yak Master

165 Posts

Posted - 2007-11-24 : 04:12:45
for(i=1;i<=40;i++)
{
for(j=1;j<=8;j++)
{
insert into Dept_Content(dept_detail,deptid,subid) values('a'+ j ,i,j)
}
}

i want to insert records like this but it doesnt work, what is wrong ?

please help me out

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-11-24 : 04:18:43
dup http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=93177


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -