Skip site navigation (1) Skip section navigation (2)

slight mistake in documentation

From: Ralf Miller <ralf(dot)miller(at)topnet(dot)de>
To: pgsql-docs(at)postgresql(dot)org
Subject: slight mistake in documentation
Date: 2001-03-21 17:36:28
Message-ID: 3AB8E69C.E2783619@topnet.de (view raw or flat)
Thread:
Lists: pgsql-docs
Hello,

i shortly like to give You a hint about a little mistake in 
 
PostgreSQL 7.1 Documentation
Chapter 3. Data Types
3.8. Bit String Types

Bit strings are strings of 1's and 0's. They can be used to store or
visualize bit masks. There are two SQL bit types: BIT(x) and BIT
VARYING(x); the x specifies the maximum
length. BIT type data is automatically padded with 0's on the right to
the maximum length, BIT VARYING is of variable length. BIT without
length is equivalent to BIT(1), BIT
VARYING means unlimited length. Input data that is longer than the
allowed length will be truncated. Refer to Section 1.1.2.2 for
information about the syntax of bit string
constants. Bit-logical operators and string manipulation functions are
available; see Chapter 4. 

Some examples: 

CREATE TABLE test (a BIT(3), b BIT VARYING(5));
INSERT INTO test VALUES (B'101', B'00');        ### try: ..VALUES
(B'101', 'B00') instead of: ..VALUES (B'101', B'00')  
SELECT SUBSTRING(b FROM 1 FOR 2) FROM test;



Thats it for the moment and
Thanks For That Great Database

Ralf

-- 
**************************************************************************

Wir würden uns freuen, Sie in der Zeit vom 22.03. - 28.03. auf der CeBIT
2001 in Hannover begrüßen zu dürfen. Halle 25 Stand 36A.

**************************************************************************

Dipl.-Ing.(FH) Ralf Miller		topnet-AG
ralf(dot)miller(at)topnet(dot)de			Willstaetterstrasse 13
Telefon 0211 53087-244			40549 Düsseldorf
Fax	0211 53087-199			http://www.topnet.de

Attachment: ralf.miller.vcf
Description: text/x-vcard (178 bytes)

Responses

pgsql-docs by date

Next:From: Peter EisentrautDate: 2001-03-21 20:27:59
Subject: Re: slight mistake in documentation
Previous:From: Vince VielhaberDate: 2001-03-21 10:36:14
Subject: Re: invalid link

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group