Win has asked for the wisdom of the Perl Monks concerning the following question:
Forgive me. I can not find the error in the following statement:
my $up = " UPDATE Prior_to_CI_calc_A_".$region." SET SUM_wi = ".$SUM_Weight_wi.", Sum_wixi_x_1000 = ".$SUM_wixi_x_1000 +_fill.", Sum_wi2xi_x_1000 = ".$SUM_wi2xi_x_1000_fill." FROM Prior_to_CI_calc_A_".$region." A WHERE A.Aggregated_area LIKE '".$Aggregated_area_fill."' AND A.Cause LIKE '".$Cause_fill."' ";
For this sin I get the error message.
Where am I going wrong?Line 5: Incorrect syntac near ','
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: SQL Update Error
by Corion (Patriarch) on Feb 18, 2004 at 11:41 UTC | |
Re: SQL Update Error
by Abigail-II (Bishop) on Feb 18, 2004 at 11:40 UTC | |
Re: SQL Update Error
by rdfield (Priest) on Feb 18, 2004 at 11:54 UTC | |
by pelagic (Priest) on Feb 18, 2004 at 12:51 UTC | |
by mpeppler (Vicar) on Feb 18, 2004 at 15:24 UTC | |
by pelagic (Priest) on Feb 18, 2004 at 15:28 UTC | |
by monktim (Friar) on Feb 18, 2004 at 17:02 UTC | |
by mpeppler (Vicar) on Feb 18, 2004 at 21:55 UTC | |
by pelagic (Priest) on Feb 19, 2004 at 09:31 UTC | |
Re: SQL Update Error
by dws (Chancellor) on Feb 18, 2004 at 15:58 UTC | |
Re: SQL Update Error
by hmerrill (Friar) on Feb 18, 2004 at 12:59 UTC | |
by Grygonos (Chaplain) on Feb 18, 2004 at 13:49 UTC |