Help for this page

Select Code to Download


  1. or download this
    cat file.sql | sql database -uUsername -Ppassword
    
  2. or download this
    sql database -uUsername -Ppassword <file.sql
    
  3. or download this
    my $shell_cmd = 'sql database -uUsername -Ppassword <file.sql';
    capture_exec_combined('sh', '-c', $shell_cmd)
    
  4. or download this
    my $shell_cmd = 'sql database -uUsername -Ppassword <file.sql';
    capture_exec_combined($shell_cmd)