Re: Sorgu daki kolon, tırna

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: Erkin Tek <erkintek(at)fotograf(dot)web(dot)tr>
Cc: pgsql-tr-genel(at)postgresql(dot)org
Subject: Re: Sorgu daki kolon, tırna
Date: 2006-11-23 17:28:20
Message-ID: 20061123172820.GA1406@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-tr-genel

On Nov 23 02:39, Erkin Tek wrote:
> bu kısımdan hareketle
> >select * from arac_periodik order by "prd_perType";
> şekline getirdiğim sorgu da çalıştı.
>
> Bir mantığı varmı bu işin? nasıl düzeltebilirim (tırnak kullanmama
> durumu==düzgün durum)? Tabloyu yaratırken böyle oluşturmuşum, tekrar
> yaratmamak için ne yapabilirim?

[SQL standartında] identifier[1]'lar büyük küçük harf duyarlı değildir.
Bu sebeple, bu standartın dışına çıkan identifier tanımlamalarında çift
tırnak kullanmak zorundasınız.

[1] PostgreSQL dökümantasyonundan ilgili satırlar: «Tokens such as
SELECT, UPDATE, or VALUES in the example above are examples of key
words, that is, words that have a fixed meaning in the SQL
language. The tokens MY_TABLE and A are examples of identifiers.
They identify names of tables, columns, or other database objects,
depending on the command they are used in.» Ek olarak: «Identifier
and key word names are case insensitive.»

Yegane tavsiyem, çift tırnak kullanmak istemiyorsanız (ki bence de öyle
yapmayın) ALTER TABLE ile o sütunların adını değiştirebilirsiniz.

İyi çalışmalar.

In response to

Browse pgsql-tr-genel by date

  From Date Subject
Next Message Erkin Tek 2006-12-01 12:32:18 Yedek alıp geri yükleyememe
Previous Message Erkin Tek 2006-11-23 12:39:08 Sorgu daki kolon, tırnak işareti gerektiriyor