in reply to Re: MySQL UPDATE in PERL
in thread MySQL UPDATE in PERL
$dbh->do('update bar set attr=val;delete from baz;');
They are also required when using most native user interfaces as those don't have a line-continuation character. Consider:
That's alot nicer to read than one long sting. However, DBI's prepare adds the semi-colon if you don't.SELECT * FROM tab1, tab2 WHERE tab1.x = tab2.y ORDER BY tab1.x desc; <-- this tells the interface you're ready to pro +cess
Then you have those crazy Sybase folks that want you to type 'go' instead of a semi-colon. . . sheeesh! At least Microsoft did one thing right when they assimilated that code!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: MySQL UPDATE in PERL
by mpeppler (Vicar) on Mar 06, 2003 at 01:18 UTC |