Msg 102, Level 15, State 1, Server DESKTOP-U368A1B, Line 1 Incorrect syntax near '1'
0
votes
1
answer
2009
views
I get the above error message when i run the following perl script from the cmd, that is supposed to do some transaction in my database.
#!/usr/bin/perl.
use warnings;
use strict;
my ( $pid1, $pid2, $pid3, $i ); #Declaration of local variables
$| = 1;
if ( ($pid1 = fork()) && ($pid2 = fork()) && ($pid3 = fork()) ) { #Starts child processes
print( "I have to wait for my kids.\n" ); #The main process execute this code
my $straggler = wait(); #The main process waits for all the children to finish
print( "Finally $straggler finished, now I can go.\n" );
}
elsif ( $pid1 && $pid2 && defined($pid3)) { #Is executed by the third child
sleep( 1 ); #Wait 1 second
print( "Start moving money between account 1 - 2" );
sleep(2);
for ($i=0; $i Msg 102, Level 15, State 1, Server DESKTOP-U368A1B, Line 1
Incorrect syntax near '1'.
I would really appreciate if somebody could help me out. I have tried to google a solution but havn't had any luck.
Asked by user127832
Mar 27, 2019, 04:36 PM
Last activity: Mar 27, 2019, 04:53 PM
Last activity: Mar 27, 2019, 04:53 PM