nightmare3519 Posted July 23, 2013 Share Posted July 23, 2013 (edited) Edited September 2, 2014 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 23, 2013 Share Posted July 23, 2013 Aşağıdaki örnek aradığınız metni tüm sutunlarda gerçek zamanlı olarak benzeyecek şekilde eşleştirir. Ama bu örnek büyük veritabanı dosyalarında arama yaparken programın kasılmasına neden olur. O yüzden inputtaki kodların başına aşağıdaki koşulu eklerseniz sadece entera basınca arama yapacaktır. if e_ID == 13 then Örnek proje: https://www.sugarsync.com/pf/D1846013_160_685185848 Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted July 23, 2013 Author Share Posted July 23, 2013 (edited) metin = Input.GetText(this); TreeList.ClearRows("Plugin1") SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM musteriler WHERE musteriadisoyadi LIKE '%" .. metin .. "%' OR telefon LIKE '%" .. metin .. "%' OR mail LIKE '%" .. metin .. "%' OR boyaadi LIKE '%" .. metin .. "%' OR boyabilgi LIKE '%" .. metin .. "%' ORDER BY isim ASC"); tVeri = SQLite3Cursor:fetch({}, "a"); while tVeri do musteriadi = tVeri.musteriadisoyadi; telefon = tVeri.telefon; mail = tVeri.mail; boyaadi = tVeri.boyaadi; boyabilgi = tVeri.boyabilgi; TreeList.AddRow("Plugin1", musteriadi.."|"..telefon.."|"..mail.."|"..boyaadi.."|"..boyabilgi, nil, 0, nil) tVeri = SQLite3Cursor:fetch({}, "a"); end Ben kendime göre düzenlemeden önce "db" nil value diyordu bende db yerlerini sqlite3cursor yaptım ama yine sonuç aynı ne yapabilirim? EDİT : SORUN ÇÖZÜMÜŞTÜR.. SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM musteriler WHERE musteriadisoyadi LIKE '%" .. metin .. "%' OR telefon LIKE '%" .. metin .. "%' OR mail LIKE '%" .. metin .. "%' OR boyaadi LIKE '%" .. metin .. "%' OR boyabilgi LIKE '%" .. metin .. "%' ORDER BY isim ASC"); isim bölümünü kendime göre ayarladı sorun çözüldü. Edited July 23, 2013 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted July 23, 2013 Author Share Posted July 23, 2013 Peki büyük veritabanı derken kaç tane veri demek istedin abi? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 24, 2013 Share Posted July 24, 2013 binlerden bahsediyorum, öyle 20-30 veride sıkıntı olmaz. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 24, 2013 Editor Share Posted July 24, 2013 AMS malesef bu durumda yetersiz kalıyor. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 24, 2013 Share Posted July 24, 2013 git burdan pis visualci biz memnunuz Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 24, 2013 Editor Share Posted July 24, 2013 git burdan pis visualci biz memnunuz Umarım vaz geçersin abi :D http://www.youtube.com/watch?v=IPiR3SRhWIU Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.