LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 04:06 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,899

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
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



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
ORA-01034: ORACLE not available ORA-27101? suresheva31 Linux - General 4 09-16-2015 11:56 AM
Getting java.sql.SQLException: Error writing file '/tmp/MYNYq5lu' (Errcode: 28) aashil Linux - Server 3 02-02-2011 11:40 AM
java.sql.SQLException: Incorrect string value nikhil010586 Linux - Server 1 07-21-2009 08:46 AM
Gentoo (masked by: missing keyword) Jonatoon Linux - Software 7 01-07-2009 03:47 AM
Seasrch keyword highlight missing? minrich LQ Suggestions & Feedback 9 12-29-2005 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 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
Open Source Consulting | Domain Registration