小编Sam*_*Sam的帖子

Searching for pairs of date/time values in a single row

I have a legacy IBM DB2 database table that contains lots of records of phone calls. It has columns for ID, customer number, employee who took the call, etc. The date/time for each call is kept in a pair of columns, ROSDAT and ROSTIM. ROSDAT is an 8 byte numeric column, and ROSTIM is a 6 byte numeric. Example:

ROSDAT    ROSTIM  
20111006  163243  
20111007  012335
Run Code Online (Sandbox Code Playgroud)

So for the first row the date is 2011-10-06, and the time is 16:32:43. There …

db2 optimization

3
推荐指数
1
解决办法
122
查看次数

标签 统计

db2 ×1

optimization ×1