---
title: "java 调用 sql,脚本，用以实现备份库"
author: "moonsee"
date: "2008-04-18T16:24:33Z"
tags: ["C", "C++", "Java", "SQL", "脚本"]
slug: "java-sql"
draft: false
lastmod: "2008-04-18T16:24:33Z"
id: 184149
url: "https://moonsee.iteye.com/blog/184149"
---

String   statement   ="sqlplus   username/password@sid   @c:\test.sql";   
    
  try   {   
  Runtime.getRuntime().exec(statement);   
  }   catch   (IOException   e)   {   
  e.printStackTrace();   
  }   
