Re: OCINewDescriptor & long fields

From: Date: Sun, 27 Aug 2000 09:10:01 +0000
Subject: Re: OCINewDescriptor & long fields
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2398@lists.php.net to get a copy of this message
Arjan Haverkamp wrote: > > -- Repost -- > Okay: here's a little summary: an Oracle-long field may contain up to > 2GB. And treating it like a normal 'varchar' does not help. It only > inserts up to 4000 characters, I want more than that! Anybody any hints > on this??? Use parameters, e.g. insert into foo values(1234, :bar) and call OCIBindByName() to associate a php variable with your sql parameter. Anyway, I would recommend using clobs instead of LONGs, since LONGs are deprecated and while they will be supported by Oracle for some time, you might find that LONGs are not the best choice dealing e.g. with Intermedia Options (for Fulltext search). -Andreas

« previous php.db (#2398) next »