English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a problem with a program that just freezes when you enter a request that is not in the database.
I can't find anything on the net that deals with this sort of problem.
I would like to put the functionality of detecting the non existence of the data in the database and dealing with it without crashing the application.
I'm trying to implement a java program that accesses an MS Access database and retrieves the data. I use java.sql.* package and jdbc.
All the other functionalities work (retrieving and updating data) but I haven't been able to resolve this bug.

2007-01-08 00:59:47 · 5 answers · asked by Franlee 2 in Computers & Internet Programming & Design

5 answers

The statement returns the null set when there is no data. Some languages have more problem with this than others. In most cases where you do have a problem you have to check for an end of file condition before you try to use the data. If you try to read a null set you will definately throw an error.

-Dio

2007-01-08 01:32:21 · answer #1 · answered by diogenese19348 6 · 0 0

A select statement that retrieves zero rows is perfectly OK in Oracle... it should work in Access too though.

It should not cause a computer freeze. Are you sure it's a query that returns zero rows or is it a query that cannot end? If it's the former it may be an Access bug.

Alternatively use the 'select count' as outlined at the URL below to see if it's a 'zero records returned' query.

2007-01-08 01:05:16 · answer #2 · answered by bambamitsdead 6 · 0 0

The statement returns the null set when there is no data.

but I think you should implement "java.oledb" for using ms access instead of "java.sql"

2007-01-08 04:54:02 · answer #3 · answered by Moein 3 · 0 0

as quickly as you observe what replaced into occurring purely previously those attempt sequence, T-20 grew to develop into into freely being carried out and it replaced into an overdose of T-20, which culminated with the ICC W.C. Triumph for West Indies. by surprise all the communities have began partaking in exams, so from T-20 overdose to the performed international places partaking in attempt sequence, one extra drastic replace has taken subject. Now to degree attempt cricket's wellness on those grounds, is stressful & figures are inflated for helpful. persons comprehend that an ODI will take approximately 8-9 hours of their time, maybe 10 on the main. T-20 takes no better valuable than 4-5 hours, with crack cricket being carried out thoroughly, in those 40 overs of each and every interest. subsequently they have their very own following, it particularly is watching on the improvement. exams are a cricketer's perfect exams, the placement they seem to assessment their clever, now no longer the huge variety, it particularly is engaged in ODI's & T-20. exams separate adult males from boys. So first-cost in the path of the vast variety, shows that exams have constrained no. Of followers, who comprehend the interest in toto. Its no longer elementary yet exams shouldn't dying even nevertheless lagging in the back of each and every T-20 & ODI's subsequently of their constrained nature. So surely cricketers & its somewhat followers ought to help look after exams alive, perpetually.. No, T-20 are no longer killing exams even nevertheless they are infecting young ones with on the spot cricket, which they are going to evaluate interior reason cricket swifter or later, that would properly be unhappy..

2016-11-27 19:26:03 · answer #4 · answered by ? 4 · 0 0

it may have not instaleed properly or there might be some file missing in ur SQL package when u got it installed. the ans which appears is something like " string not found"

2007-01-08 01:02:42 · answer #5 · answered by krishna 4 · 0 0

fedest.com, questions and answers