Strings and trailing spaces????
Posted in 1999
Topics: Connectivity: ODBC / JDBC / .NET, Java & JDBC Development
Hello, I've noticed that all of my strings have trailing spaces added. Is this part of Informix or the JDBC driver? Also, is there anyway to tell the DB not to add them. I hate to trim every string. Slows things down. Regards, Dave Brown
Dave Brown schrieb: > > Hello, > > I've noticed that all of my strings have trailing spaces added. Is this > part of Informix or the JDBC driver? > > Also, is there anyway to tell the DB not to add them. I hate to trim > every string. Slows things down. You could change char to varchar to avoid them. In addition it saves space if string length varies. Other way is to put a trim() around the strings in the select (which may not be possible for you?) Achim