应该不是,我把代码修改如下:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "MyTimestamp" AS
import java.lang.String;
import java.sql.Timestamp;
import java.io.*;
import java.util.*;public class MyTimestamp
{
 
    public static String getTimestamp()throws IOException
   {
     try
      {
            Runtime runtime = Runtime.getRuntime();
            Process process = runtime.exec("C:\\MYBAT.BAT");       }
       catch(IOException ex) { return "not success!";}          return(new Timestamp(System.currentTimeMillis())).toString();
   }
};
则返回not success!"