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 2000 Forums
 Transact-SQL (2000)
 insert problem

Author  Topic 

ziqew
Starting Member

2 Posts

Posted - 2004-10-13 : 22:30:14
hi,all
i have a problem.first i do a select query like this.
i want insert more than one records into a table by one time .what shoud i do.

SELECT name
FROM syscolumns LEFT OUTER JOIN
sysobjects ON syscolumns.id = sysobjects.id
WHERE (sysobjects.xtype = 'U')

i get a lot of record about name,and i want insert the values of the name of the records into another table's field columnName.

nr
SQLTeam MVY

12543 Posts

Posted - 2004-10-13 : 23:12:08
insert tbl (columnName)
SELECT name
FROM syscolumns LEFT OUTER JOIN
sysobjects ON syscolumns.id = sysobjects.id
WHERE (sysobjects.xtype = 'U')


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

ziqew
Starting Member

2 Posts

Posted - 2004-10-13 : 23:19:08
thx
Go to Top of Page
   

- Advertisement -