LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-24-2013, 02:17 AM   #1
snehal89
LQ Newbie
 
Registered: Nov 2012
Posts: 27

Rep: Reputation: Disabled
java.sql.SQLException: ORA-00928: missing SELECT keyword


Hello everyone,

I am getting java exception error in following query:

statement2.executeUpdate("INSERT INTO visit_header" + "VALUES ('"+visitnumber+"','"+date+"','"+cookie+"','"+ip+"','"+duration+"')");

please can any one help me on this.

thank you in advance.
 
Old 04-24-2013, 05:06 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,152

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
what is the problem, SELECT (or something else) is missing:
INSERT into TABLE values (.....) but what? see here:
https://dev.mysql.com/doc/refman/5.1...rt-select.html
 
  


Reply

Tags
java


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting java.sql.SQLException: Error writing file '/tmp/MYNYq5lu' (Errcode: 28) aashil Linux - Server 3 02-02-2011 12:40 PM
java.sql.SQLException: Incorrect string value nikhil010586 Linux - Server 1 07-21-2009 09:46 AM
Gentoo (masked by: missing keyword) Jonatoon Linux - Software 7 01-07-2009 04:47 AM
Seasrch keyword highlight missing? minrich LQ Suggestions & Feedback 9 12-29-2005 07:44 AM
ORA-01034: ORACLE not available ORA-27101? suresheva31 Linux - General 0 10-18-2004 02:49 PM


All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration