Re: LONG DATA TYPE????????

From: Date: Tue, 26 Oct 1999 06:39:18 +0000
Subject: Re: LONG DATA TYPE????????
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11902@lists.php.net to get a copy of this message
hi, u need to use ocibindbyname() of ora_bind() (if u use the "old" API). what you need to do: <? $somelong = "some very long sring - .... - up to 2G"; $c = ocilogon("u","p"); $s ociparse($c,"insert into test (somelong) values (:SOMELONG)"); ocibindbyname($s,":SOMELONG",&$somelong,-1); ociexecute($s); ocifreestatement($s); ocilogoff($c); // etc ?> On Tue, 26 Oct 1999, amrith wrote: > DEAR PEOPLE > I HAVE ORACLE DATABASE ON LINUX. > i HAVE A TABLE WITH LONG TYPE.wHEN I GIVE A INSERT STATEMENT I GET THE > FOLLOWING > > MY SQL STATEMENT IS GENERATED BY HTML FORM INPUT. > > insert into NEW_RECIPIE_MASTER values > > ('5','DFDFD','So','2','ASAs....................aSAsa > ','images/cook/FHJGHJ') > > > > Warning: Ora_Parse failed (ORA-01704: string literal too long -- while > processing OCI function OPARSE) in > /www/htdocs/moldata/cooking/recipieadd.php3 on line 57 > > > PLEASE TELL ME THE REMIDY ELSE IAM RUINED..... > > > AMRITH > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#11902) next »