X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 848EBD1B273; Fri, 28 May 2004 12:56:53 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 75793-05; Fri, 28 May 2004 12:56:31 -0300 (ADT) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by svr1.postgresql.org (Postfix) with ESMTP id 16822D1B1B7; Fri, 28 May 2004 12:56:30 -0300 (ADT) Received: from 129.187.254.13 (proxying for 138.245.10.2) (SquirrelMail authenticated user xier); by home.in.tum.de with HTTP; Fri, 28 May 2004 17:56:21 +0200 (MEST) Message-ID: <62364.129.187.254.13.1085759781.squirrel@129.187.254.13> In-Reply-To: <40B74644.9080908@winfreeacademy.com> References: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13> <40B74644.9080908@winfreeacademy.com> Date: Fri, 28 May 2004 17:56:21 +0200 (MEST) Subject: Re: PostgreSQL delete the blank in the end of the String From: xier@in.tum.de To: vancel@winfreeacademy.com Cc: pgsql-general@postgresql.org User-Agent: SquirrelMail/1.4.3-RC1 X-Mailer: SquirrelMail/1.4.3-RC1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200405/859 X-Sequence-Number: 61293 hi, thank you very much for your tips! As your tip: use a char() field instead of a varchar() field. The problem is solved. Thanks! have a good time! rong > xier@in.tum.de wrote: > >>hello, >> >>my Name is Rong. I am student at TU-Munich. I have some questions for >>Postgresql7.2 under SuSe Linux. >>Postgresql7.2 under SuSe Linux8.0. >>I use PostgreSQL7.2 with PGAdminII1.4.2 under Windows2000. >> >>I insert a String from Teleform6.0 of Cardiff through ODBC in table of >>PostgreSQL. >>There should be some blank in the End of the String. e.g: "data >> " >>But there ist no blank in the end of the String in the table. e.g: "data" >>It means, that PostgreSQL delete the blank in the end of the String >>automatically. >>But I need the blank in the end of the String. >>how can I avoid it? >> > If you know how long you need to field to be, use a char() field instead > of a varchar() field or some other varying-length field. If the length > of the fields needs to be variable, then try putting some sort of > termination character at the end of the blank space... such as a period > (.), then have your program strip it out when it's reading it. > >>How can convert TIFF Raw G3 to TIFF G4(image file format) in shell script >>of linux. >> > You can use a program called Image Magick for the image conversion. The > software has several programs that are installed as a result, and it's > all usable via the shell. The specific program that you'll want to read > about is called "convert". A program that I have set up that part of > its function is to create thumbnail pictures uses convert like this: > > convert -geometry 221x164 sourcefile newfile > > Good luck! > >> >>I hope I can get your Help! >>Thank you very much! >> >>best regards! >> >>rong >> >> > -- > Thanks, > Laura Vance > Systems Engineer > Winfree Academy Charter Schools, Data-Business Office > 1711 W. Irving Blvd. Ste 310 > Irving, Tx 75061 > Web: www.winfreeacademy.com > >