Jump to content

Sql De Mükerrer Kayıtlar


korasoglu
 Share

Recommended Posts

Tablonun belirli bir sütununda mı bunu yapmak istiyorsun yoksa tümünde mi bilmiyorum ama tek sütun için şöyle bişey kullanmıştım..

SELECT SutunAdi from TabloAdi GROUP BY SutunAdi

bu şekilde SutunAdi kısmına yazacağınız sütundaki veriler sadece birer kez yüklenir...

Link to comment
Share on other sites

Ben şöyle çözdüm sizinkinide bir deniyeyim.

SELECT * FROM tabloadi WHERE tabloadi.id = ( SELECT MAX(tabloadi.id)  WHERE tabloadi.sutunadi = tabloadi.sutunadi)GROUP BY sutunadi ORDER BY sutunadi ASC

 

 

SELECT DISTINCT klise_liste FROM firma

bu iş görmedi

 

Arkadaşlar evet bu tek sutunda işe yarıyor

 

SELECT firma from klise_liste GROUP BY firma

Edited by korasoglu
Link to comment
Share on other sites

  • 2 hafta sonra ...

Arkadaşlar sql de 20 sutun ve 1500 satır ekledim bul dediğin zaman inputun canı çıkıyor yüklemede sıkıntı yaşıyor kasılıyor. Bunun en klay ve ideali nasıldır.

 

ben ınputun onkeyine uyguladim

 

aa = Input.GetText("ara")
avci.baglan()
SQLite3Connection, err = SQLite3Connection:execute("SELECT * FROM kisiler WHERE adi LIKE '%" .. aa .. "%' OR soyadi LIKE '%" .. aa .. "%' OR gorevi LIKE '%" .. aa .. "%' OR gorevyeri LIKE '%" .. aa .. "%' OR tahsil LIKE '%" .. aa .. "%'");
dd = SQLite3Connection:fetch({}, "a")
if dd ~= nil then
while dd do
TreeList.AddRow("Plugin1", dd.adi .. "|" .. dd.soyadi.. "|" .. dd.tel ...
dd = SQLite3Connection:fetch({}, "a")
end
end
avci.kapat()
Link to comment
Share on other sites

kodları 

if e_Key == 13 then

end

bloğu içine alırsan, enter tuşuna basınca arama yapar. senin yaptığın şeklinde he rtuşa basınca sorgu çalışır. bu sistem seninkine nazaran daha az kasar.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...