That was the only reason behind it. Thanks.
Now can you help me to figure out a way So I can upload a constant string type in date type OCI stage.
something about date
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You just... do it.sylvan_rydes wrote:Now can you help me to figure out a way So I can upload a constant string type in date type OCI stage.
![Confused :?](./images/smilies/icon_confused.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
You should do a TO_CHAR(column_name,YYYY-MM-DD HH24:MI:SS') while selecting date field. Also dont key in metadata definition-import it. Then in user defined query in OCI stage use this TO_CHAR.chulett wrote:You just... do it.sylvan_rydes wrote:Now can you help me to figure out a way So I can upload a constant string type in date type OCI stage.Make sure it is in the format the datatype is expecting. For example, declared as a Timestamp it would need to be in the format YYYY-MM-DD HH24:MI:SS to 'upload' correctly, assuming you are using the generated sql.
I hope it helps.
Avishek Mukherjee
Data Integration Architect
Chicago, IL, USA.
Data Integration Architect
Chicago, IL, USA.
There's absolutely no reason to use User Defined SQL to do that - the stage will automatically generate the 'proper' TO_CHAR (and the corresponding TO_DATE) sql for you based on the datatype.
IMHO, user defined sql should be avoided at all costs, only when you've got no other choice should you fall back to it. Too many opportunities for error with it and you increase the maintenance workload of the job that uses it.
IMHO, user defined sql should be avoided at all costs, only when you've got no other choice should you fall back to it. Too many opportunities for error with it and you increase the maintenance workload of the job that uses it.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers