[Linux-programlama] MySQL'de tek alanda DISTINCT

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Tonguc Yumruk (tongucyumruk@interaktif.gen.tr)
Date: Wed 02 Feb 2005 - 16:58:15 EET


Merhaba,

İki adet mysql tablom var. Bunları şu şekilde birleştiriyorum:

SELECT a.hede, b.hodo FROM content AS a LEFT JOIN users AS b ON
a.foo = b.bar;

fakat sorun şurada a tablosundaki her kayıtta birden fazla defa b
tablosundaki kayda (bar) gönderme (foo) var. Benim istediğim de b
tablosundaki her "bar" kaydına karşılık a tablosundan sadece bir kayıt
dönmesi. Yani bir alanı distinct ilan edip sadece o alandaki son kaydı
getirmek. Bunu düz SQL ile yapmam mümkün mü acaba?

-- 
Sevgi Saygı GNU/Linux
########################################################################
It is now pitch dark.  If you proceed, you will likely fall into a pit.
########################################################################
Tonguç Yumruk


_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.