- name: Go to the folder
command: chdir=/opt/tools/temp
Run Code Online (Sandbox Code Playgroud)
当我运行我的剧本时,我得到:
TASK: [Go to the folder] *****************************
failed: [host] => {"failed": true, "rc": 256}
msg: no command given
Run Code Online (Sandbox Code Playgroud)
任何帮助深表感谢.
select col1, col2
into name1, name2
from table1
where col1=col;
m_sub := 'Subject ';
m_msg := 'Hello '||name||' ,'||/n||/n||'Your order has been placed.';
Run Code Online (Sandbox Code Playgroud)
错误(34,33):PLS-00103:遇到以下其中一项时遇到符号"/":( - + case mod new null avg count current max min before sql stddev sum variance execute forall merge time timestamp interval date pipe
这是我的pom.xml的一个片段.我尝试了以下操作,但配置文件未激活.
mvn clean install -Pdev1
mvn clean install -P dev1
Run Code Online (Sandbox Code Playgroud)
当我尝试mvn help:active-profiles没有配置文件被列为活动时.如果我设置<activeByDefault>为dev1要true,并运行 mvn help:active-profiles,它给我展示了配置文件被激活.
<profile>
<id>dev1</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<env>local</env>
<properties.file>src/test/resources/dev1.properties</properties.file>
</systemPropertyVariables>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/dev1.testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dev2</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<env>local</env>
<properties.file>src/test/resources/dev2.properties</properties.file>
</systemPropertyVariables>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/dev2.testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Run Code Online (Sandbox Code Playgroud)
我想知道为什么我的个人资料没有被激活.有没有人遇到类似的问题?
我正在尝试创建一个触发器.它应该更新sysdate的任何新日期条目.到目前为止,我有以下代码.但是,我得到"无效表名"和"SQL语句忽略"错误.
CREATE OR REPLACE TRIGGER new_orders
AFTER INSERT ON orders
FOR EACH ROW
BEGIN
IF INSERTING THEN
UPDATE
SET order_date := SYSDATE;
END IF;
END;
/
Run Code Online (Sandbox Code Playgroud) 我使用三个表 - 订单,员工和职位.订单有Employee_no,Employee表有Position_no.我想确保Order表中的Employee_Nos是Sales中那些员工的编号.销售中员工的Position_no是3,4,5,6.我使用查询1(见下文)添加检查约束.但是,它不喜欢子查询.我可以使用查询2(见下文),它确保Orders表中的Employee_No在列表中(列表是销售中员工的员工数).但是,如果新员工加入,则查询2将不起作用.我知道这可以使用触发器解决,但不知道如何.如果有人可以帮助我,我会很高兴的.