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.
| Author |
Topic |
|
anupalavila
Yak Posting Veteran
56 Posts |
Posted - 2011-10-21 : 01:21:22
|
| Hi I am trying to insert into a table with some values selected from another tableinsert into tblChequeImage(bankId,cqImage) values ('201',(select cqImage from tblChequeImage where bankId='8'))It shows error message "Subqueries are not allowed in this context. Only scalar expressions are allowed."How can I correct my queryThanks and Regards Anu Palavila |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-10-21 : 02:26:28
|
[code]insert into tblChequeImage(bankId,cqImage) select '201', cqImage from tblChequeImage where bankId = '8'[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|