473,670 Members | 2,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

derby Encountered: "@"

oll3i
679 Contributor
when i run sql query
select * from GRABBER.CANDIDA TES 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.CANDIDA TES where EMAIL=mmmm
i get an error that column "mmmm" doesnt exists


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


?

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

kind regards,

Jos
Jan 19 '09 #2
oll3i
679 Contributor
thank You Jos

i do
resultSet.last( );
this.numberOfRo ws = resultSet.getRo w();
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 Contributor
i did resultSet.first (); but it doesnt display records
Jan 19 '09 #4
JosAH
11,448 Recognized Expert MVP
@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 Contributor
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 Contributor
silly error i know what is wrong i did not do the assignment :( hihi
Jan 19 '09 #7
oll3i
679 Contributor
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 Contributor
my service remembered it i just made it all null after extracting and displaying
Jan 19 '09 #9
oll3i
679 Contributor
my server is complaining about
error: Wrapper class grabber.SetLast NameNull 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

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

Similar topics

0
1460
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 find a tarball archive of the documentation for this product? It would also be nice if the documentation provided REAL information about the engine like what indexing implementation is used. ----== Posted via Newsfeeds.Com -...
5
2326
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 Framework (v2.0.50727) and the Setup of my prject, I get some nasty error: "MyApplication has encountered a problem and needs to close. We are sorry for the inconvenience" with the well-known "Send Error Report" and "Don't Send"-buttons. I tried it on...
3
2089
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 any differences in features, license, functionality or performance? Ioannis
1
453
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". Any ideas how to resolve this? I tried sending him a new mde and database but that didn't help. Also, he tried to reinstall it and is getting (during setup) "Setup could not open the file c:\Program Files\Common Files\Microsoft...
14
3764
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 character is encountered. But when my program runs it gets a SIGSEGV (Segmentation vioalation) signal. Whats wrong? And is there a better way than mine to solve this task (most likely)
1
1845
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 execute this application, they are getting the following error. "the NTVDM encountered an illegal instruction" What is causing this error and what do i need to do to fix it?. Thanks
1
1838
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
8920
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 saved my computer from a trip out my window lol. now im trying to create a derby database at runtime in my java code...ive created and used databases on the hard drive, but now im trying to move toward the net and started with the localhost. im...
8
8888
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 try { int count=statement.executeUpdate("CREATE TABLE contacts("+ "CONTACT_ID INTEGER NOT NULL PRIMARY KEY, "+
0
8468
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7415
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4209
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1792
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.