[Linux-programlama] Re: SQL Sorgusu (Birden Çok Alanı İşleyip Where ile Sorgulamak )

---------

[Linux-programlama] Re: SQL Sorgusu (Birden Çok Alanı İşleyip Where ile Sorgulamak )

From: <bedo_at_sahbaz.name.tr>
Date: Wed, 16 Apr 2008 14:16:25 +0300 (EEST)
Message-ID: <33441.85.97.118.254.1208344585.squirrel@webmail.pbs.com.tr>

Söylediğiniz şekilde denediğimde;

Hata

SQL sorgusu: Belgeler

SELECT id, (
a + b + c
) AS toplam
FROM deneme
WHERE toplam >5
LIMIT 0 , 30

MySQL çıktısı: Belgeler
#1054 - Unknown column 'toplam' in 'where clause'

şeklinde hata alıyorum..

> sum(a+b+c) tüm tablonun toplamını verir. Arkadaşın istediği bir kayıtta
> olan
> alanların toplamı.
>
> select (a+b+c) as toplam from sil where toplam > 5
>
> gibi bir sorgu işini görür.
>
> İyi Çalışmalar
> A.
>
> 2008/4/16 Tuncay BAŞ <tuncay_at_bir.net.tr>:
>
>> select a,b,c,SUM(a+b+c) as toplam from table_name where toplam >5000
>> order
>> by toplam desc
>>
>> olabilir mesala
>>
>>
>>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Wed 16 Apr 2008 - 13:30:51 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.