Want to get totaly how many is insert and how the duplicate name

Hi all,
I need to insert a group of string into database it work, but I also need to know how many rows is insert, and out put the duplicat name out
My code is
while(tokens.hasMoreTokens()) {
MySec=tokens.nextToken();
while(token.hasMoreTokens()) {
rs = stmt.executeQuery("select * FROM "+table+" where Name='"+Name+"' and Segment='"+Segment+"'");
// same sequences will only allow to upload once.
int Row=0;
while(rs.next()) {
Row ++; // count rows in record.
connectionPool.returnConnection(conn);
if(Row <1){
conn.setAutoCommit(false);
//insert data into different tables
stmt.executeUpdate("insert into "+table+" ("
+ "Name, Segment, Sequence, SubType,location, SampleYear, author)"
+ "VALUES('"
+ Name + "','"
+ Segment+ "','"
+ word+ "','"
+ subType + "','"
+ loc + "','"
+ year+ "','"
+ author + "'"
+ ")");
conn.commit();
conn.setAutoCommit(true);}//end if
else{
dupli[k]=Name;
k++;}
}//in while
}out while
Thank you

Orange file?!?I.e. not the Apple file.

Similar Messages

Maybe you are looking for

  • How to create a workflow based on std 11i workflow

    How do you create a new workflow process based on one of the std workflows embedded in the 11i apps? Thanks, Dave.

  • Want Welcome screen to open up all the time in itunes

    I'm trying to sync my ipod to itunes and want the Welcome screen to appear when I open itunes.  Instead, the program takes me straight to my library.  How can I get itunes to always open up to my Welcome screen?

  • Short dump Error during VM container communication between ABAP and JAVA.

    Hello All, Can anybody please help with resolving the following issue: Short dump is displayed, when I try to insert CRM product (type: material) in the document (opportunity). This CRM product was created in CRM directly. When I try to insert ECC mi

  • Multi-Lingual JSP Reports

    Hi, Can I use the customize xml functionality for providing multi-lingual capability for JSP reports? I have been able to replace report fields labels with foreign language/customized labels for PDF and 6i-style HTML reports. How should one go about

  • Using International Support

    I have received some text set in Illustrator CS2. The text has been set in HelveticaRussian, an old font that is no longer available to buy. As we don't have this font, when we open the file, the text defaults to Myriad Roman (Adobe's default font) a