It's not a secret anymore!
The moose likes JDBC and the fly likes Data Insert Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Data Insert Problem" Watch "Data Insert Problem" New topic
Author

Data Insert Problem

Ekrem Altintas
Greenhorn

Joined: Dec 20, 2005
Posts: 14
Connection conn = null;
try
{
...
cumle = conn.createStatement();
...
cumle.excuteUpdate("INSERT INTO kelimeler(kelime,sayi) VALUES('"+deger[0]+"',1)");
...
}

I wrote this statement, I'm taking;

cannot resolve symbol
symbol : method executeUpdate (java.lang.String)
location: interface java.sql.Statement

error.I don't know what is the problem.
Ekrem Altintas
Greenhorn

Joined: Dec 20, 2005
Posts: 14
I forgot the other value.

String[] deger = new String[50];
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

Just like you were told in your cross-post in the Sun forum: you used "excute" instead of "execute".
 
jQuery in Action, 2nd edition
 
subject: Data Insert Problem
 
Similar Threads
Passing cent symbol from jsp to servlet -- Problem
Insert method....
getting zelo value of varibales.
TextField with comma
formatting