摘要:
1.1 获得当前日期+时间(date + time)函数:now()除了 now() 函数能获得当前的日期时间外,MySQL 中还有下面的函数:current_timestamp() current_timestamplocaltime() localtimelocaltimestamp() localtimestamp 这些日期时间函数,都等同于 now()。鉴于 now() 函数简短易记,建议总是使用 now() 来替代上面列出的函数。 1.2 获得当前日期+时间(date + time)函数:sysdate()sysdate() 日期时间函数跟 now() 类似,不同之处在于:now() 阅读全文
posted @ 2014-02-08 18:28
小六.223
阅读(463)
评论(0)
推荐(0)
摘要:
原因是实体类设置为strategy = GenerationType.AUTO自增长,数据库表中的字段去没有设置为自增长的,需要修改为id int(11) NOT NULL auto_increment. 阅读全文
posted @ 2014-02-08 18:22
小六.223
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号