U
usman
I have a string like this ( test " A " ) and want to insert into the
database as same ( test " A " )
database as same ( test " A " )
usman said:I have a string like this ( test " A " ) and want to insert into the
database as same ( test " A " )
usman said:once again I am explaing my question is
I am send string test"A" to database,
but I am getting string test that all.
usman said:once again I am explaing my question is
I am send string test"A" to database,
but I am getting string test that all.
Oliver said:[post re-ordered]
usman said:once again I am explaing my question is
I am send string test"A" to database,
but I am getting string test that all.
A question usually has a question mark ('?') at the end.
Your database... does it use SQL? If so, what's the SQL statement you're
using to perform the insert? If not, what kind of database are you using?
- Oliver
usman said:I am using oracle as my database
string which I am setting the database as follows
cstmt.setString(2,mcNumber);
mcNumber is a string variable and it is getting the string as test"A"
but the database is taking test as a complete not test"A"
my problem is that string before the double quote is getting inserted
and reamining is not getting inserted into the database
Oliver said:What's the class of cstmt?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.