Ich update eine Tabelle, das ganze mache ich mit einem cursor es funktionier auch ist nur sehr sehr langsam,
kann ich es vielleicht auch auf eine andere weise lösen, hier cod
declare @ma int,@mo int,@abr int,@p int
set @ma = 2
set @mo = 1224
set @abr = 300200013
set @p = 230719
declare upd_cursor cursor
for select ma,mo,abr,p from Tabel
where ma=@ma and mo=@mo and abr=@abr and p=@p
open upd_cursor
fetch next from upd_cursor
into @ma,@mo ,@abr ,@p
while @@fetch_status = 0
begin
UPDATE [Tabel]
SET [xyz]=111 WHERE [Ma]= @ma and [Mo]= @mo and [Abr]= @abr and [P]= @p
fetch next from upd_cursor
into @ma,@mo ,@abr ,@p
end
[/PHP]
Vielen Dank