473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

derby Encountered: "@"

oll3i
679 512MB
when i run sql query
select * from GRABBER.CANDIDATES where EMAIL=xxx@xxxxx.xx
i get
Error code -1, SQL state 42X02: Lexical error at line 1, column 55. Encountered: "@" (64), after : "".


when i do select * from GRABBER.CANDIDATES where EMAIL=mmmm
i get an error that column "mmmm" doesnt exists


when i run select EMAIL from GRABBER.CANDIDATES where id=1
it works fine
?


?

thank You
Jan 19 '09 #1
10 3923
JosAH
11,448 Expert 8TB
Use single quotes around those String values; better yet, use PreparedStatements for that purpose, they do the nitty gritty work for you.

kind regards,

Jos
Jan 19 '09 #2
oll3i
679 512MB
thank You Jos

i do
resultSet.last();
this.numberOfRows = resultSet.getRow();
to get the number of rows
but then i want to return these records as a map
but when i do resultSet.last(); it doesnt display any rows
how do i come back to the first record?
Jan 19 '09 #3
oll3i
679 512MB
i did resultSet.first(); but it doesnt display records
Jan 19 '09 #4
JosAH
11,448 Expert 8TB
@oll3i
Make your result set scrollable (read its API documentation), After moving to the last row and getting the row number move back to the first row again.

kind regards,

Jos
Jan 19 '09 #5
oll3i
679 512MB
hmm it does return the records when i did system.outs i see it in the server log must be something wrong with my map
Jan 19 '09 #6
oll3i
679 512MB
silly error i know what is wrong i did not do the assignment :( hihi
Jan 19 '09 #7
oll3i
679 512MB
okey i'm done with it yet i have another problem

i am writing a web service that proccesses a cv extracts data from it and sends it to jsp page then i send it to the db
but when i extract data from one cv and try to extract data from another cv jsp remembers the old data and displays it instead of the new data
Jan 19 '09 #8
oll3i
679 512MB
my service remembered it i just made it all null after extracting and displaying
Jan 19 '09 #9
oll3i
679 512MB
my server is complaining about
error: Wrapper class grabber.SetLastNameNull is not found. Have you run APT to generate them?

when i dont have SetLastNameNull function i have setLastNameNull function i dont use SetLastNameNull function anywhere ?
Jan 19 '09 #10
JosAH
11,448 Expert 8TB
@oll3i
This is a job for grep: grep your source files for "SetLastNameNull"; I'm sure grep will find a hit because a server is way too stupid to make such an error up.

kind regards,

Jos
Jan 20 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Wiseguy | last post by:
apache-derby is the opensource release of the IBM Cloudscape JDBC/SQL embedded database engine for java. Unfortunately the derby website doesn't provide any downloadable documentation. When can I...
5
by: DraguVaso | last post by:
Hi, I tried to deploy an application written in VB.NET 2005, with the Release Candidate. Everything works fine on my pc which has the Visual Studio installed, but when I install the .NET...
3
by: IOANNIS MANOLOUDIS | last post by:
Hello I downloaded cloudscape 10.0 from sourceforge. There is also the database derby available for download from the Apache incubator. Is there a difference between these two products? Are there...
1
by: pw | last post by:
Someone was using our A97 product earlier in the day. He exited it, and now can't open the application. He is all of a sudden getting "MSAccess.exe has encountered an error and needs to close". ...
14
by: spike | last post by:
Im trying to write a program that should read through a binary file searching for the character sequence "\name\" Then it should read the characters following the "\name\" sequence until a NULL...
1
by: Chandra | last post by:
Hi, I developed a Visual C++ 6.0 MFC Application on Windows 2000 5.00.2195 Service Pack 4. THe Application runs fine on my machine. But when a customer who also has Windows 2000 is trying to...
1
by: kesava81 | last post by:
Has anyone tried connecting and running queries on Apache Derby using perl? If so, what modules are required? Any help would be greatly appreciated.... Thanks in advance Deekshit
14
by: drsmooth | last post by:
I hope you are all ok with the frequency of this question following my last, im struggling alot with this database stuff. and i really appreciate all the help from this forum, many a time you have...
8
oll3i
by: oll3i | last post by:
my function connects to the database but the tables are not created? i get Syntax error: Encountered "<EOF>" at line 1, column 187. part of my function that is supposed to create the tables ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.