小编Sah*_*ahu的帖子

通过“ mvn exec:exec”运行类文件

我是Maven新手,通过Maven运行类文件时遇到问题

使用mvn exec可以正常运行
:java -Dexec.mainClass =“ com.test.Test”

但不适用于
mvn exec:exec -Dexec.executable = java -Dexec.mainClass =“ com.test.Test”

要求输入Java参数

F:\data\work\Test>mvn exec:exec -Dexec.executable=java -Dexec.mainClass="com.test.Test"
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
    -hotspot      is a synonym for the "server" VM  [deprecated]
                  The default VM …
Run Code Online (Sandbox Code Playgroud)

java maven exec-maven-plugin

5
推荐指数
1
解决办法
4710
查看次数

oracle批量删除:从表中删除数组中的列

我正在尝试收集一系列修订版数字.
我将用于删除多个审计表中的记录.
所以我编写了一个plsql来收集该数组,并根据使用该数组的条件在其他表上运行delete

declare 
  type NumberArray is table of number index by binary_integer;
  revisions NumberArray;
Begin
  select rev bulk collect into revisions from (
    select t.rev, row_number() over (partition by 
        column1,
        column2
        order by column3) rn
    from table1 t)
  where rn <> 1;

  dbms_output.put_line(revisions.count || ' records found from table2 to be deleted');
  delete from table2 where rev in (revisions);
  dbms_output.put_line('deleted from table2');
Run Code Online (Sandbox Code Playgroud)

我正进入(状态

 PLS-00382: expression is of wrong type
 06550. 00000 -  "line %s, column %s:\n%s"
 *Cause:    Usually a …
Run Code Online (Sandbox Code Playgroud)

oracle plsql

0
推荐指数
1
解决办法
5905
查看次数

标签 统计

exec-maven-plugin ×1

java ×1

maven ×1

oracle ×1

plsql ×1