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
 SQL Server Development (2000)
 sub query in insert statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-24 : 08:47:29
roopa writes "hi i need to use select statement inside insert statement and this is for asp how do i do it?
like
i get error for the following query
sql="insert into table values('"&var&"')"&_
sql=sql &"where table.customerid=select * from table1 where ID="&id&""
set rs=db.execute(sql)"
   

- Advertisement -