[英]How can I insert Date Time with WSO2 Data Service in Oracle
I need to insert datetime information with WSO2 Data Service in Oracle date field. 我需要在Oracle日期字段中使用WSO2数据服务插入日期时间信息。 I created an Oracle procedure to insert a record. 我创建了一个Oracle过程来插入一条记录。
The WSO2 map considers: WSO2地图考虑:
< param name="execution" sqlType="DATE" ordinal="17" />
And for execute the DS, I used: 为了执行DS,我使用了:
< xs:execution xmlns:xs="ds.exec.com.br">2011-04-01T08:10:00</xs:execution>
I tried use the query like this: 我试过使用这样的查询:
INSERT INTO xxxx (execution)
VALUES (to_date(p_execution,'yyyy-mm-dd hh24:mi:ss'));
Someone can help-me please? 有人可以帮我吗?
您应该能够将“ TIMESTAMP”用作输入映射的“ sqlType”,如下所示。
<param name="execution" sqlType="TIMESTAMP" ordinal="17"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.