Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
DECLARE @LibraryID as IntSET @LibraryID = 38UPDATE [eBenchmark].[dbo].[tblLibraryData]SET Data = 'ABCDEFG'WHERE DataID = SELECT CC_Package FROM tblLibrary WHERE LibraryID = @LibraryID
But I get the error
Incorrect syntax near the keyword 'SELECT'.
Is it possible to do the above?Thanks
Frank Kalis
Constraint Violating Yak Guru
413 Posts
Posted - 2003-08-20 : 05:25:13
UPDATE [eBenchmark].[dbo].[tblLibraryData]SET Data = 'ABCDEFG'WHERE DataID =(SELECT CC_Package FROM tblLibrary WHERE LibraryID = @LibraryID) should workCheers,Frank