-3
UPDATE tblAlbum
SET dateAlbumReleaseDate = '12/1/2003'
WHERE dateAlbumReleaseDate BETWEEN #6/1/2002# AND #11/31/2002#
AND IngAlbumID IN (SELECT a.IngAlbumID
FROM tblAlbum a,
tblArtist ar,
tblLINKArtist_Album al
WHERE a.IngAlbumID = al.IngAlbumID
AND al.IngArtistID = ar.IngArtisID
AND ar.strArtistName = ('Oasis'))
如果您在SQL Server中以字符串格式定義日期,則應該使用ISO-8601格式的'YYYYMMDD'從任何區域/語言設置安全。嘗試'WHERE dateAlbumReleaseDate BETWEEN'20020601'和'20021130''例如 - 不要在SQL Server/T-SQL中爲日期使用'#' –