Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!

Akin Demir

Greenhorn
+ Follow
since Jul 08, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Akin Demir

The query is fine but in your preparedstatement you give the name parameter same as the one you used in the where clause. This has no effect. The name field is not updated.

Also you might try

try this
Your table is
name pass1 pass2 addr email phone

but in the query

UPDATE userde set name=?,add=?,email=?,phone=? where name=?

change add with addr
In your query
UPDATE userde set name=?,add=?,email=?,phone=? where name=?
you have 5 fields(?)
but
in the code
ps.setString(1, name);
//ps.setString(2, pass1);
//ps.setString(3, pass2);
ps.setString(4, add);
ps.setString(5, email);
ps.setString(6, phone);
you try to set 6 fields.

try this

ps.setString(1, name);
//ps.setString(2, pass1);
//ps.setString(3, pass2);
ps.setString(2, add);
ps.setString(3, email);
ps.setString(4, phone);

And check type compatibility. Are all of the columns in the table string?
cumle.executeUpdate("Update kelimeler set sayi="+artir);
And what if your resultset contained only one row.
You call first() the cursor goes to the firs row then you call next() on rresultset
In your kelimeler table is there a column named sayi
What i meant was

Consider a time zone +2 and -4
will this method give the same long if there are exactly 6 hours of time difference
14 years ago
Hi all,

Does System.currentTimeMillis() method give CET time or local time
14 years ago