sqlite 日期字符串转integer
update lg -- 更新数据 SET age = CAST (( date ( -- 格式化 jz_sj (取前10位日期部分进行处理) printf ( '%04d-%02d-%02d' , substr ( replace ( jz_sj , '/' , '-' ), 1 , 4 ), CAST ( substr ( replace ( jz_sj , '/' , '-' ), 6 , instr ( substr ( replace ( jz_sj , '/' , '-' ), 6 ), '-' ) - 1 ) AS INTEGER ), CAST ( substr ( replace ( jz_sj , '/' , '-' ), 6 + instr ( substr ( replace ( jz_sj , '/' , '-' ), 6 ), '-' )) AS INTEGER ) ) ) - julianday ( -- 格式化 csrq printf ( '%04d-%02d-%02d' , substr ( replace ( csrq , '/' , '-' ), 1 , 4 ), CAST ( substr ( replace ( csrq , '/' , '-' ), 6 , instr ( substr ( replace ( csrq , '/' , '-' ), 6 ), '-' ) - 1 ) AS INTEGER ), CAST ( substr ( replace ( csrq , '/' , '-' ), ...