oracle导入bom,哪位做过BOM的数据导入(Data Conversion)

看看我的吧

begin

UPDATE AIC_IMPORT_BOM_TEMP

SET organization_id = 88;---- next is   89

insert into  bom_bill_of_mtls_interface

(assembly_item_id ,

organization_id,

assembly_type,

process_flag,

transaction_type

)

(select distinct

aic.parent_item_id ,

aic.organization_id,

1 ,

1 ,

'Create'

from  aic_import_bom_temp aic

where aic.segment1 is not null

and aic.segment10=1 )

;

insert into bom_inventory_comps_interface

(process_flag,

component_item_id,

operation_seq_num,

component_quantity,

wip_supply_type,

assembly_item_id,

transaction_type,

Effectivity_date,

organization_id ,

item_num        ,

INCLUDE_IN_COST_ROLLUP,

SUPPLY_SUBINVENTORY,

COMPONENT_YIELD_FACTOR

)

(

select

1,

aic.component_id,

aic.op_seq ,

aic.qty,

decode(lower(aic.supply_type),'push',1,'assembly Pull',2,'operation pull',3,'bulk',4,

'supplier',5,'phantom',6,'based on bill',7) ,

parent_item_id,

'Create',

sysdate,

organization_id  ,

segment1 ,

ROLLUP_flag,

null,--SUBINVENTORY,

yield

from   aic_import_bom_temp aic

where   err_msg is null

)

;

end;

/*--------------------

WIP_SUPPLY_TYPE WIP_SUPPLY MFG_LOOKUPS

1 Push

2 Assembly Pull

3 Operation Pull

4 Bulk

5 Supplier

6 Phantom

7 Based on Bill

Column Descriptions

-----------------------*/

這是我導入BOM時用的語句﹐當然還有load時用到的ctl文檔

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在SWAT模型中,气象数据可以通过使用SWAT Graphical User Interface(SWAT GUI)或命令行方式导入。下面是通过SWAT GUI导入气象数据的步骤: 1. 打开SWAT GUI,选择要导入气象数据的模型文件。 2. 在SWAT GUI中选择“Data”选项卡,然后选择“Meteorology”选项卡。 3. 单击“Add”按钮,然后选择要导入的气象数据文件。SWAT支持导入多种格式的气象数据文件,如WGN、CSV、TXT、DBF等。 4. 根据数据文件格式,选择正确的列分隔符和行分隔符。 5. 指定每列数据的单位,并选择数据文件中包含的表头行数。 6. 如果需要,可以选择在导入过程中对数据进行筛选或转换。 7. 单击“OK”按钮,SWAT GUI将开始导入气象数据。 在命令行方式下,可以使用SWAT模型自带的“weather”工具导入气象数据。具体的命令行语法如下所示: weather -i weather_file -tstart start_date -tend end_date -rstation station_file -s station_id -v variable_name -u unit_conversion 其中,参数说明如下: - weather_file:指定要导入的气象数据文件。 - start_date和end_date:指定要导入的气象数据的时间范围。 - station_file:指定气象站点信息文件。 - station_id:指定要导入的气象站点ID。 - variable_name:指定要导入的气象数据变量名。 - unit_conversion:指定单位转换系数。 例如,下面的命令将导入“weather.csv”文件中的降雨数据: weather -i weather.csv -tstart 20100101 -tend 20101231 -rstation station.dbf -s 001 -v RAIN -u 25.4 通过这些方法,可以将气象数据导入SWAT模型,并用于模拟分析。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值