Merhaba,

On Mon, 2016-05-16 at 21:06 +0300, [email protected] wrote:
> "character varying" veri tipine isterseniz (10) diyerek 10 karakterlik yer
> de verebiliyorsunuz veya bu şekilde de bırakılabiliyor. Kitapta "Siz 10
> karakter deseniz bile 10'dan fazla karakter de girilebiliyor" gibi bir şey
> okudum ama öyle olmuyor?! 10 Karakteri geçtiğinizde hata diyor?!

Hangi kitapta okudunuz bu tümceyi? PostgreSQL belgeleri ise şunu diyor:

http://www.postgresql.org/docs/devel/static/datatype-character.html

"An attempt to store a longer string into a column of these types will result
in an error, unless the excess characters are all spaces, in which case the
string will be truncated to the maximum length. (This somewhat bizarre
exception is required by the SQL standard.) "

"unless the excess characters are all spaces". Belki kitap bu kısmı yanlış
yorumlamış olabilir.

Saygılar,

-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Linux-programlama mailing list
[email protected]
https://liste.linux.org.tr/mailman/listinfo/linux-programlama
Liste kurallari: http://liste.linux.org.tr/kurallar.php

Cevap