avatar
sybase 问题请教# Database - 数据库
s*1
1
我现在要load flat file 到sybase table
这个表比flat file多一个rundate 列
请问怎样在scripts里把这个rundate列也
加上 然后bcp到表里
还是我只能把其他列bcp,然后在表里再update
那个列?
thanks a lot for your suggestion.
avatar
j*n
2
bcp to a staging table that has a rundate column with default value as
GETDATE.
avatar
s*1
3
thanks for reply.
then how to cp from staging to final one?

【在 j*****n 的大作中提到】
: bcp to a staging table that has a rundate column with default value as
: GETDATE.

avatar
j*n
4
now you got all you want in stating table...
insert into destinationTable
Select * from stagingTable
when you do ETL, staging table is a good practice for doing data massages.

【在 s********1 的大作中提到】
: thanks for reply.
: then how to cp from staging to final one?

avatar
j*n
5
I haven't using sybase for years... so I can only give you the universal way
. I am sure there would a better way for using sybase ETL tool. such as in M
$ SQL Server, you could have a derived column to do so in SSIS without
sacrifice performance and storage space.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。