RE: Need some MySQL query help...

From: Ronald Kimball (rjk_at_focalex.com)
Date: 01/20/04


Date: Tue, 20 Jan 2004 13:34:15 -0500
To: "NIPP, SCOTT V \(SBCSI\)" <sn4265@sbc.com>,	"Hardy Merrill" <HMerrill@dhcr.state.ny.us>,	<dbi-users@perl.org>


 

> -----Original Message-----
> From: NIPP, SCOTT V (SBCSI) [mailto:sn4265@sbc.com]
> Sent: Tuesday, January 20, 2004 11:23 AM
> To: Hardy Merrill; dbi-users@perl.org
> Subject: RE: Need some MySQL query help...

> *** OUTPUT ***
> syntax error at ./passwd2db.pl line 34, near ""Adding $key1
> to password
> database
> . \n";"
> Execution of ./passwd2db.pl aborted due to compilation errors.

That's a Perl syntax error, not an SQL syntax error.

> $dbh->do("INSERT INTO acct_db
VALUES('$key1','$uid','$gid','$gcos','$home','$shell',NOW())")
or print "Error updating database: ", $dbh->errstr, "\n";(
> print "Adding $key1 to password database. \n";

You have a spurious left parenthesis at the end of the $dbh->do() line.
Right
where the syntax error was reported.

Ronald



Relevant Pages

  • Re: a perl script crashed my mac!
    ... I have never seen an OS X computer crash until ... >> kernel panic because it doesn't compile, let alone execute. ... syntax error at frog line 12, ... Execution of frog aborted due to compilation errors. ...
    (comp.lang.perl.misc)
  • Re: A C Adventure: your comments are welcome
    ... syntax error even in C99. ... If lcc-win32 supports this (which I doubt ... and the obvious compilation errors it causes can be fixed without ... (I think it can happen with *any* language that has comments that finish at ...
    (comp.lang.c)
  • Re: A C Adventure: your comments are welcome
    ... syntax error even in C99. ... If lcc-win32 supports this (which I doubt ... and the obvious compilation errors it causes can be fixed without even thinking about it. ... (I think it can happen with *any* language that has comments that finish at end-of-line, where code is posted to usenet (and some line-oriented languages would have the problem even without comments). ...
    (comp.lang.c)
  • Re: Corrupted Data
    ... syntax error at - line 6, near ",>" ... had compilation errors. ... don't want to show us the real code. ... Peter Scott ...
    (perl.beginners)
  • include problem with dxutgui.h
    ... of compilation errors in "dxutgui.h". ... The error messages start with: " syntax error: identifier ...
    (microsoft.public.win32.programmer.directx.graphics)