`
myhongkongzhen
  • 浏览: 94388 次
  • 性别: Icon_minigender_2
  • 来自: 广州
社区版块
存档分类
最新评论

sybase load table使用實例

    博客分类:
  • SQL
阅读更多

load table ftbCgi( intBranchId,intBscId,intSgsnId )
from
    '/opt/iq/userDB/1281496975827.txt' delimited 
by
    ',' row delimited 
by
    '
' escapes off quotes off with checkpoint on;




Load Table month
(   month_key        '|',
    month_text       '|',
    month_number     '|',
    fiscal_period    '|',
    year             '|',
    period_and_year  '|',
    month_and_year   '\x0a')
FROM 'D:\SybaseIQ\data\month.dat'
escapes off
quotes off
Notify 100
WITH CHECKPOINT ON;

COMMIT;

Load Table service
(   service_key			'|',
    call_waiting_flag		'|',
    caller_id_flag		'|',
    voice_mail_flag		'|',
    cellular_flag		'|',
    internet_flag		'|',
    isdn_flag			'\x0a'  )
FROM 'D:\SybaseIQ\data\service.dat'
escapes off
quotes off
Notify 10000
WITH CHECKPOINT ON;

COMMIT;


Load Table status
(   status_key			'|',
    new_customer		'|',
    new_address			'|',
    call_waiting_status		'|',
    caller_id_status		'|',
    voice_mail_status           '|',
    cellular_status		'|',
    internet_status		'|',
    isdn_status			'|',
    closed_this_period	'\x0a'  )
FROM 'D:\SybaseIQ\data\status.dat'
escapes off
quotes off
Notify 100
WITH CHECKPOINT ON;

COMMIT;





 
 
0
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics