Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Insert Problem

 
Ekrem Altintas
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forgot the other value.

String[] deger = new String[50];
 
Paul Clapham
Sheriff
Posts: 21149
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just like you were told in your cross-post in the Sun forum: you used "excute" instead of "execute".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic