Dubro
2006-01-04 11:07:13 UTC
Dear Group,
I want to read values from a MySQL Dump which are of type BIGINT(20)
(16-bit values). Is there a possibility to silently convert values from
numeric to character while reading values from an INSERT INTO
statement?
See example:
proc sql;
create table log_visits
(
logid num, userid char(20), logType char(20),
ip num, channelID num, keywordID num, keyword char(256),
keyValue num, shopID num, refinfo char(256), referer char(256), time
char(20)
);
quit;
proc sql;
insert into log_visits
values
(4879671487765984868,'4879671487765984868','click',1357166180,2,2280453,'',0,0,'','http://www.Suche','20060101183733')
values
(4879671459621714959,'4879668968540683279','click',3277667343,2,1347872,'',1,0,'','','20060101183726')
values
(4879671427701090352,'4879671427701090352','click',1421813808,2,2096098,'',1,0,'','','20060101183719');
quit;
The first value (LOGID) is numeric in the dump but should be read as
character by SAS.
*very desparated;
Dubro
I want to read values from a MySQL Dump which are of type BIGINT(20)
(16-bit values). Is there a possibility to silently convert values from
numeric to character while reading values from an INSERT INTO
statement?
See example:
proc sql;
create table log_visits
(
logid num, userid char(20), logType char(20),
ip num, channelID num, keywordID num, keyword char(256),
keyValue num, shopID num, refinfo char(256), referer char(256), time
char(20)
);
quit;
proc sql;
insert into log_visits
values
(4879671487765984868,'4879671487765984868','click',1357166180,2,2280453,'',0,0,'','http://www.Suche','20060101183733')
values
(4879671459621714959,'4879668968540683279','click',3277667343,2,1347872,'',1,0,'','','20060101183726')
values
(4879671427701090352,'4879671427701090352','click',1421813808,2,2096098,'',1,0,'','','20060101183719');
quit;
The first value (LOGID) is numeric in the dump but should be read as
character by SAS.
*very desparated;
Dubro