Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If a select statement is executed against an empty sqlite3 database, will the result be a null or will it throw an exception?
I kind find anything in the documentation that says something explicit about this and it is very important to me.
DamithSL 17-Nov-14 9:33am    
why don't you try?
Maciej Los 17-Nov-14 10:48am    
What you mean by 'empty database'?
Gbenbam 17-Nov-14 11:11am    
sorry.I meant an empty table.

1 solution

Please, read my comment to the question.

If by saying database, you mean table, you'll get NULL. If by saying database you mean database (there is no table), you'll get an exception.
Share this answer
Gbenbam 17-Nov-14 11:10am    
sorry i meant a table.Thanks.
Maciej Los 17-Nov-14 12:07pm    
You're welcome ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900