Batch execution



import java.sql.*;
class BatchDemo
{
public static void main(String s2[])
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:syam");
Statement st=con.createStatement();

String str1="insert into login values('s','g')";
st.addBatch(str1);
String str2="insert into login values('q','w')";
st.addBatch(str2);
st.executeBatch();


}catch(Exception e){System.out.println(e);}
}
}
[Read More...]


Autocommit



import java.sql.*;
class AutoCommitDemo
{

public static void main(String s2[])
{
Connection con=null;
try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:syam");
con.setAutoCommit(false);
Statement st=con.createStatement();
st.executeUpdate("insert into student values(1,'veena')");
st.executeUpdate("insert into mark values(1,50)");
con.commit();
}catch(Exception e1){
try{
con.rollback();
}catch(Exception e2){System.out.println(e2);}
}
finally{
try{
con.setAutoCommit(true);
}catch(Exception e2){System.out.println(e2);}
}
}
}
[Read More...]


Acer reportedly set to launch three touch-enabled, Windows 7-based devices




Another company producing yet more products that take advantage of Windows 7's much-vaunted touch cappabilities? Amazing but true, at least according to DigiTimes, which is reporting that Acer is set to launch no less than three "touch-enabled products" loaded with Windows 7. That word apparently comes straight from a product manager in the company's mobile computer department, who also went on to say that touch-enabled netbooks might see "good market acceptance" if they're marketed as cheaper alternatives to tablet PCs, although it's not clear if the products in question are actually touch-enabled netbooks. In other touch-related news, Acer is also reportedly looking at using in-cell touch panel technology when it becomes widely available, which should be cheaper to produce than conventional touch panels that don't have all the necessary touch components built right in at the LCD panel level.
[Read More...]


Atree J100 gets lost in the forest of Korean PMPs




We certainly can't knock the 4GB Atree J100 when it comes to its well stocked arsenal of goodies: it has a three-inch touchscreen, an e-dictionary, DMB digital TV tuner, video playback, and microSD expansion -- and it plays music too. Audio formats are also plentiful, with MP3, WMA and OGG for the commoners, and FLAC and APE for the lossless fanatics. Too bad it's held back by the chunky casing, which looks big enough to have fit a five-inch screen if the designers were so inclined. With slicker-looking competition from the likes of Cowon and Samsung, the otherwise entirely useful J100 might struggle to stand out, but if you're willing to look beyond its superficial shortcomings, it's available now for 198,000 KRW ($158).
[Read More...]


 

Recent Comments

Popular Posts

Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors