![]() |
|
offset - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Veri Tabanı (https://www.delphican.com/forumdisplay.php?fid=4) +--- Forum: FireBird (https://www.delphican.com/forumdisplay.php?fid=13) +--- Konu Başlığı: offset (/showthread.php?tid=6079) |
offset - info@guzelceker.com - 11-06-2021 offset neden çalışmıyor bende firebird 2.5 select ARSIVNO from MUSTERILER ORDER BY ARSIVNO OFFSET 0 ROWS FETCH NEXT 2 ROWS ONLYsql hata mesajı veriyor ofsette offset - anemos - 12-06-2021 Bu özellik Firebird 3 ile eklendi. Teknik dökümanları takip etmenizde fayda var... offset - mrmarman - 12-06-2021 Sayfalama için iki yöntem paylaşıldı. Bu linki incelemek isteyebilirsiniz. Cvp: offset - info@guzelceker.com - 12-06-2021 (12-06-2021, Saat: 07:49)mrmarman Adlı Kullanıcıdan Alıntı: Sayfalama için iki yöntem paylaşıldı. Bu linki incelemek isteyebilirsiniz. hocam tşkler. çok mantıklı bana uymayan kod FRecCount := FDQuery1.RecordCount;bu ama (kayıt sayısı çok olduğunda..1 milyon ve fazlasında memory hatası geliyor)) bunuda SQL ile çözerim.. tek sorunum .. en son kaydın yani en son sayfanın en başta olması.. tersten dizmem gerekiyor offset - mrmarman - 12-06-2021 Üstadım orada iki çözüm var. Asıl çözüm tüm kayıtları değil sadece sayfa kadar kayıt çeken olanı. O başlığa ilk mesajımda yazdığım yani. Sıralamanın yönü biçimi önemli değil. Mantık basit çünkü. Başarılar Cvp: offset - info@guzelceker.com - 12-06-2021 Dm_Kayit.FD_musteriler.FetchOptions.RecsSkip := FRecCount-10000; bu kod duruken kayıt yaparken aşağıdaki hatayı aldım Dm_Kayit.FD_musteriler.FetchOptions.RecsSkip := -1; yaptığımda kaydediyor Exception class EFDException with message '[FireDAC][DApt]-400. Insert command inserted [0] instead of [1] record. Possible reasons: update table does not have PK or row identifier, record has been changed/deleted by another user'. offset - emozgun - 13-06-2021 https://www.delphican.com/showthread.php?tid=5886 sebep FDTable olabilir mi acaba? Cvp: offset - info@guzelceker.com - 13-06-2021 (13-06-2021, Saat: 06:22)emozgun Adlı Kullanıcıdan Alıntı: https://www.delphican.com/showthread.php?tid=5886 sebep FDTable olabilir mi acaba? fdtablo kullanmıyorum fdquery ile çalışıyorum offset - emozgun - 14-06-2021 O halde http://docwiki.embarcadero.com/RADStudio/Sydney/en/Editing_Questions_(FireDAC) sayfasında belirtilenler olmalı: A: This error is often raised when FireDAC includes some float / double / single / date / datetime / time or some other table fields, which are subject to precision loss in the WHERE phrase. When an application assigns values to parameters, the precision loss may happen. As result of that, the WHERE phrase returns no records. FireDAC may include such fields into WHERE depending on UpdateOptions.UpdateMode. Sometimes you can see this error with upWhereKeyOnly. Although you have specified upWhereKeyOnly, FireDAC may still use upWhereAll. This happens when there is no PK field defined. No PK fields may be defined when: fiMeta is excluded from FetchOptions.Items; or a table in SQL does not have primary key defined; or UpdateOptions.KeyFields is empty; or none of TField's has pfInKey in ProviderFlags. Another reason with some DBMSs (SQL Server, PostgreSQL) is that the table has a trigger which modifies the data. With SQL Server put SET NOCOUNT ON at trigger beginning. With PostgreSQL set UpdateOptions.CountUpdatedRecords to False. |