Results 1 to 2 of 2
- 10-26-2010, 10:56 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 8
- Rep Power
- 0
problem with inserting new record
Hi All,
I have this following code:
Statement stmtInsert = connection.createStatement();
String test = "insert into calltract (transaction_id,location_code) values (1,\"01\")";
stmtInsert.executeUpdate(test);
and the result is:
No data - zero rows fetched, selected, or processed
The purpose of this code is to insert data into table "calltract"
Any Idea what wrong with this code?
- 10-26-2010, 11:33 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
Problem regarding Inserting data into Mysql via JSP
By abhi118 in forum JDBCReplies: 5Last Post: 04-05-2010, 01:24 PM -
Some problem in fetching record
By Shivraj in forum NetBeansReplies: 1Last Post: 03-27-2009, 11:19 AM -
Problem while inserting UTF-8 characters in MS-SQL Server 2000 Database
By sagarsway in forum JDBCReplies: 1Last Post: 12-30-2008, 04:39 PM -
Problem inserting values to MySQL tables from the Data Source Explorer
By tip in forum EclipseReplies: 0Last Post: 12-24-2007, 09:47 AM -
Problem calling classes to flip coin x number of times and record heads or tails
By adlb1300 in forum New To JavaReplies: 2Last Post: 11-11-2007, 08:07 AM


LinkBack URL
About LinkBacks

Bookmarks