
Originally Posted by
richyrich
I think the best thing to do is work out why the query is returning more than 1 record as that's the only reason I can see why you'd get 5 inserts.
Even if you kept the loop, it would only loop through 1 record then.
Are my presumptions on the performance correct? Should it only be 1 record?
I have put in DISTINCT in the sql statement.. so it should only show up 1 record rite?
the query is supposed to only show up 1 record, you are rite.
but when i de-bug i get this showing up:
Code:
INSERT INTO bookings (performanceID, customerID, bookingDate) VALUES ('3','1','23/11/2009');INSERT INTO performances(Status) VALUES('Booked');0No update permissions!
Centurion, November 23rd, 2009 10:29 AM
Bookmarks