1、对dateTime时间类型的获取 数据库中时间为2013-4-9 10:14:29,使用String regTimeTemp = rs.getString("regTime");获取时间的结果是2013-4-9 10:14:29.0,最后一个表示毫秒数,需要截取字符串 public static String stringToString(String date){
mysql workbench创建表时columns中 PK: primary key (column is part of a pk) 主关键字 NN: not null (column is nullable) 不能为空&n
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号