Create Procedure ssp_InsertClientDefaults(
@cid int
)
AS
BEGIN
INSERT INTO ClientTermData
(ClientID, TermID, NormCount, NormProb, DiscCount, DiscProb, Weight)
WHERE NOT EXISTS
(SELECT
@cid, GlobalTermData.TermID, GlobalTermData.NormCount, GlobalTermData.NormProb,
GlobalTermData.DiscCount, GlobalTermData.DiscProb, GlobalTermData.Weight
FROM GlobalTermData, DefaultTerms
WHERE DefaultTerms.TermID = GlobalTermData.TermID);
END
GO
'Where'でエラーが発生します。何が悪いのかわからない。