8/4
一直在改bug,之前做的好快,然后很多问题都没有考虑周全
还好我们组长很强,每次都能大概定位到我的bug在哪里
bug
{
- 有的compt_subject会有^符号,需要进行处理,还有值为@{variable,需要在映射表中再次search
- compt_business和compt_subject来自的字段不同,这是因为表的结构改变了,这是最难受的,最近的bug都是因为这个原因
- Linux中svn update时可能会有冲突,可以tc(他人的版本为主)或者mc(以自己的版本为主)
- 地址解析的,update需要对两种type的记录都要进行插入时间戳,否则两个线程只能启动一个
}
SQL中left函数:选取字符串左边几位,可以用于索引,left(str,len)
改功能:对省份表进行一个简称映射:t_prov_code
DataFrame:选取表的内存映像某些行,并且在筛选过后的DF中选取某一列
df[df[column] != value]---->select * from table_name where column != value;
return df[column2]
上面两者的结合可以用sql表示:
select column2 from (
select * from table_name where column1 != 0
)
where condition;
select reason from t_compt_reason where parent_cd in(
select parent_cd from t_compt_reason where parent_cd!='0'
);
==>完全可以变成
select reason from t_compt_reason where parent_cd<>'0';