Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I've been searching long and hard for documentation on the DBI:SQLite module, but googling has only found me debian mirrors and changelogs. CPAN has minimal documentation, and there's no manpage ( unless I'm just daft ). I've looked through the actual .pm file a bit, but I won't claim to follow most of it.
I am hoping to find some supported methods, syntax examples, etc.
Here's my problem:

my $sql = "SELECT * FROM test"; my $sth = $dbh->prepare($sql) || die "Couldn't prepare $sql: $sth->err +str"; + + while ( @row = $sth->fetchrow_array ) { print "@row\n"; }

which is basically about as simple as it gets and the standard DBI way of doing it.

I'm getting this error:

dbih_setup_fbav: invalid number of fields: 0, NUM_OF_FIELDS attribute probably not set right at ./ line 12.
I'm kind of at a loss. Your help, or even just a pointer to a set of 'thorougher' docs, would be most appreciated.
Thanks! -- cidaris

2003-06-04 edit ybiC: s/pre/code/

In reply to SQLite Documentation by cidaris

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2023-06-05 11:20 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (24 votes). Check out past polls.