09 2020 档案
摘要:1】kettle Unable to find table name field [null] in input row 表输出”组件有一个选项如图,勾选后,表名会作为字段增加到输入行 中,如果输出表没有该字段,就会报错“ unable to find table name field null i
阅读全文
摘要:1】substr substr(string str , int a , int b) : 截取str从a开始的长度为b的字符。 select substr('本年累计新增承保保单件数-健康险-短期-个人-医疗保险-费用补偿型',14) as itemname from dual ; -- 截取从第
阅读全文
摘要:1】查询索引 -- 查询表中所有的索引 select * from information_schema.STATISTICS ; -- 查询主键索引 select t.TABLE_NAME , t.INDEX_NAME from information_schema.STATISTICS t wh
阅读全文
摘要:1】 分页 2】变量设置 == 全局/局部 3】查询总数据量,并设置变量 SELECT count(1) total_page FROM dmlog_policy t WHERE 1=1 and t.trans_status in ('0','3') and contractid between $
阅读全文
摘要:1】没有主键 == 增加主键 后再删除重复数据 然后去掉主键字段 -- 增加自增id alter table 表名 add id int(10) not null auto_increment,add index idx_id (id); -- 例如 : alter table kpi_prpall
阅读全文
摘要:1】日期 获得当前日期+时间(date + time)函数:now() 或者 sysdate() select now(); -- 2020-09-24 21:29:13 select sysdate(); -- 2020-09-24 21:29:54 获得当前日期(date)函数:curdate(
阅读全文