When doing Win32::ODBC programming can I use one db connection to do 2 queries on the db.
like
$db = new Win32::ODBC("MyDSN"); $db->Sql("select * from table"); while($db->FetchData()) { my $var = $db->Data("column"); $db->Sql("update table2 set col2=\'$var\'"); }
I did not try this code because I am working on quite senstive DB and do not have permissions to create test tables. If one of the update goes wrong then I would be in trouble.
regards,In reply to Query twice by abhishes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |