Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

?INSERT in Oracle9i /Java w/ StringBuffer append?

Posted on 2004-10-29
2
Medium Priority
?
288 Views
Last Modified: 2010-04-17
How do I insert a record into Oracle using Java.  For example I have the keyi an SSN. I have to place an letter into a field and place a date into another field. The record is written for the first time.
Thank you in advance    
0
Comment
Question by:coolgem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
MogalManic earned 1000 total points
ID: 12451920
what do you mean by w/ StringBuffer append?


The insert is simple:
insert into table(SSN, updated) values('111-11-1111', to_date('12/12/2005', 'mm/dd/yyyy'))

Using parameters would be better:
insert into table(SSN, updated) values(?, ?)
where the values ?, ? are set by parameters:
0
 

Author Comment

by:coolgem
ID: 12464007
I was trying to do the INSERT in Java using the StringBuffer java class.  
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question