| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I want to insert a multiline character string. Is there a special escape sequence for the newline charcters? (When I just stick in a new line character, my jdbc driver barks at me.) Many thanks in advance! Aaron |
|
#2
| |||
| |||
| aaronfude wrote: > Hi, > > I want to insert a multiline character string. Is there a special > escape sequence for the newline charcters? (When I just stick in a new > line character, my jdbc driver barks at me.) > > Many thanks in advance! > > Aaron > String foo = "blah, blah\nnew line...\n nother wefwefwef"; p = c.prepareStatement("insert into mytable values(?)"); p.setString(1, foo); p.executeUpdate(); |
|
#3
| |||
| |||
| Joe Weinstein wrote: > aaronfude wrote: > > > Hi, > > > > I want to insert a multiline character string. Is there a special > > escape sequence for the newline charcters? (When I just stick in a new > > line character, my jdbc driver barks at me.) > > > > Many thanks in advance! > > > > Aaron > > > > String foo = "blah, blah\nnew line...\n nother wefwefwef"; > > p = c.prepareStatement("insert into mytable values(?)"); > p.setString(1, foo); > p.executeUpdate(); Apparently my "driver does not support this functionality". Is there anything else I can do? Thanks! |
|
#4
| |||
| |||
| aaronfude wrote: > Joe Weinstein wrote: > >>aaronfude wrote: >> >>>Hi, >>> >>>I want to insert a multiline character string. Is there a special >>>escape sequence for the newline charcters? (When I just stick in a new >>>line character, my jdbc driver barks at me.) >>> >>>Many thanks in advance! >>>Aaron >> >>String foo = "blah, blah\nnew line...\n nother wefwefwef"; >> >>p = c.prepareStatement("insert into mytable values(?)"); >>p.setString(1, foo); >>p.executeUpdate(); > > Apparently my "driver does not support this functionality". Is there > anything else I can do? > Thanks! Yow! What sort of failed-high-school-project of a JDBC driver are you using? Sorry, I'm fresh out of ideas in that sort of environment. Joe Weinstein at BEA Systems |
|
#5
| |||
| |||
| I'm using RmiJdbc.jar I thought it was supposed to pretty good. Can you recommend another for accessing and ODBC database (Access and Excel). Aaron |
|
#6
| |||
| |||
| aaronfude wrote: > I'm using RmiJdbc.jar > > I thought it was supposed to pretty good. I have been doing professional JDBC driver development and support since '96. I have never seen a driver that had not implemented simple JDBC 1.0 prepared statements. > Can you recommend another for accessing and ODBC database (Access and > Excel). > Aaron I wish I could, but I don't no of any high-quality JDBC-ODBC bridge. Sun's also sucks, but nowhere near as bad as that one... |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.