default value

From: ibrahim saricicek <ibrahimsaricicek(at)gmail(dot)com>
To: pgsql-tr-genel(at)postgresql(dot)org
Subject: default value
Date: 2010-10-22 12:10:01
Message-ID: AANLkTimXqGuNEsxfaSRFZLtVa6BY3ehm7Lra_vyPHGUy@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-tr-genel

Merhaba,

Bir kolona randon RGB color tanımlamak için "trunc(random() * (255-0) +
0)||' '||trunc(random() * (255-0) + 0)||' '||trunc(random() * (255-0) + 0)"
kullanıyorum.
Bunu bir kolonun default değeri yapabilir miyim? Her eklenen satırda random
bir renk kodu oluşmuş olacak böylece?

İyi Çalışmalar...

Responses

Browse pgsql-tr-genel by date

  From Date Subject
Next Message ibrahim saricicek 2010-10-22 12:26:48 Re: default value
Previous Message Namık Güngör 2010-10-20 15:18:33 Acil Yardım