|
-
Jun 2nd, 2000, 05:21 AM
#1
Thread Starter
Addicted Member
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
I keep getting this error when trying to return a select statement as an output variable.
for example:
SELECT @var = (SELECT item_id
FROM #Table
WHERE order_item IS NULL)
I need to have the rows that come back from this inside a variable -- how do i do this; can I?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|