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


?INSERT in Oracle9i /Java w/ StringBuffer append?

Posted on 2004-10-29
Medium Priority
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    
Question by:coolgem
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
LVL 21

Accepted Solution

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:

Author Comment

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

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