經常使用的sybase iq數據庫導表語句

create table exttable_phone_imsi(imsi char(25));
load table exttable_phone_imsi
(
imsi 0x0a
)
using file '/home/sybase/imsi.txt'
quotes off
escapes off
goorm

drop table exttable_phone_id
gotable

create table exttable_phone_id(
phonenum  varchar(100),
imsi  varchar(100),
imei  varchar(500),
phonemodel varchar(500),
mac varchar(100))
goform


desc formatted exttable_phone_idfile

load table exttable_phone_id
(
phonenum          '|',
imsi              '|',
imei              '|',
phonemodel        '|',
mac               0x0a
)
using file '/home/sybase/yym.txt'
quotes off
escapes off
gomodel


create table tmp_yym_gw20150527(
gw_account varchar(100),
search_key varchar(100))
goim

load table tmp_yym_gw20150527(
gw_account '|',
search_key 0x0a)
using file '/home/sybase/gw.txt'
quotes off
escapes off
gotab

create table tmp_gwtimes(
gw_account varchar(100),
times int)
goco


load table tmp_gwtimes(gw_account '|',
times 0x0a)
using file '/home/sybase/gwtime.txt'
quotes off
escapes off
gotime

load table exttable_phone_id
(
phonenum          '|',
imsi              '|',
imei              '|',
phonemodel        '|',
mac               0x0a
)
using file '/home/sybase/yym.txt'
quotes off
escapes off
goab

相關文章
相關標籤/搜索