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