Replies: 2 comments 1 reply
-
Converting to a discussion as per #2026 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @vicochan, the following works for me: input:
generate:
count: 1
mapping: |
root.createon = "2024-03-06"
output:
sql_raw:
driver: oracle
dsn: oracle://system:testpass@localhost:1521/FREEPDB1
query: |
INSERT INTO TEST (snap_time) VALUES(to_date(:1,'yyyy-mm-dd'))
args_mapping: |
root = [
this.createon
]
init_statement: create table TEST(snap_time DATE) I used I guess you might have some error in your data. Please try adding some |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an example of writing output data to an ORALCE table,
the table structure is as follows
create table GZ_MIGRATE_HISTORICAL_30_TEST
(
snap_time DATE,
city VARCHAR2(20),
population_total NUMBER,
migrate_total NUMBER,
createon DATE default sysdate
)
The following table describes the YAML configuration:
The error message is as follows:
Another way to write it
I also want to use the same mistake in another way, what is the syntax for writing the date type field of ORALCE?
Beta Was this translation helpful? Give feedback.
All reactions