摘要: 一般是html的转义,xml也适用 但是在写sql时,xml文件中会出现。转义方法public static String htmlReplace(String str){ str = str.replace("“","“"); str = str.replace("”","&rdquo 阅读全文
posted @ 2022-10-19 11:27 了悟 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 时间差函数:TIMESTAMPDIFF MySQL 语法: TIMESTAMPDIFF (unit,begin,end) begin和end可以为DATE或DATETIME类型,并且可允许参数为混合类型。 unit参数是确定(end-begin)时间差的单位,单位值如下表 单位 MySQL(UNIT 阅读全文
posted @ 2022-10-19 11:19 了悟 阅读(833) 评论(0) 推荐(0) 编辑