September 13, 2005 at 3:10 am
Hi, i was able to insert into table 'FilesPath' two values (a,b) but if value 'a' not exist.
This is my SQL query:
INSERT INTO FilesPath
(Path,Destination)
VALUES (@a,@b)
WHERE 0 =
(SELECT COUNT(*)
FROM filespath
WHERE Destination = @a)
there is one error on WHERE statement.
How i will solve this problem???
Thanks 4 All.
September 13, 2005 at 4:24 am
Thank a lot. this is better from my code and it is work excellent.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply