|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Subquery returned more than 1 value. Error on Update SQL
Hi guys,
I am just trying to do a simple update statement and am getting this error Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated. My statment is like this: Code:
update [Clients] SET [OPT-OUT] = 0 WHERE [OPT-OUT] is null I have used this against another table with success, but get the error against that one. Anyone have any idea? |
|
#2
|
||||
|
||||
|
that is so totally weird
there's no subquery!! |
|
#3
|
|||
|
|||
|
Yeah that is what I thought. It does not make a whole lot of sense to me. Has anyone seen this before?
|
|
#4
|
||||
|
||||
|
what happens if you rename the column so that it doesn't require square brackets?
|
|
#5
|
|||
|
|||
|
I really do not know. Unfortunatly I am unable to change the field name, as it is generated from an external program. We have another table with the same field in it and it works fine reading
Code:
update [Personnel] SET [OPT-OUT] = 0 WHERE [OPT-OUT] is null which is why I am completey dumbfounded |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Subquery returned more than 1 value. Error on Update SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|