Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Converting from MySQL to SQLite

by Matts (Deacon)
on Aug 02, 2004 at 19:07 UTC ( #379385=note: print w/ replies, xml ) Need Help??


in reply to Converting from MySQL to SQLite

SQLite's model does not return the number of rows once you execute the statement. The DBI states that not all drivers support this, and SQLite is one of the ones that doesn't support it.

The only way to work this is to try and fetch your rows, and if nothing comes back then you know there were no rows (it's just an inversion of your logic there).


Comment on Re: Converting from MySQL to SQLite

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://379385]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-07-22 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (106 votes), past polls