怎么在数据库表里面自动插入日期字段
2014-05-19 17:09
204 查看
String sql="insert into t_testinfo (userId,main_food,vegetable,meat,method,mood,sport_amount,health_ill," +
"body_condition,fubu_condition,fubu_pain_position,fubu_pain_reason,fubu_pain_serious,past_cacation_times," +
"now_cacation_times,cacation_time,cacation_feeling,cacation_taste,cacation_control,cacation_have," +
"take_laxatives,blood_cacation,date) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,NOW())";
String sql="insert into t_testinfo (userId,main_food,vegetable,meat,method,mood,sport_amount,health_ill," +
"body_condition,fubu_condition,fubu_pain_position,fubu_pain_reason,fubu_pain_serious,past_cacation_times," +
"now_cacation_times,cacation_time,cacation_feeling,cacation_taste,cacation_control,cacation_have," +
"take_laxatives,blood_cacation,date) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,NOW())";
相关文章推荐
- 怎么在数据库表里面自己主动插入日期字段
- oracle里面怎么查一个表中的日期字段的连续日期的缺少的日期
- 关于springmvc怎么自动把前台string类型日期字段转换成date类型
- 往数据表中插入 "字段名 字符串" , 对于非字符字段,采用 "递增整形数字" 代替(日期字段会自动转变为对应日期)
- sqlserver 数据库 里面有数据 怎么生成 插入语句 把里面的数据
- 关于hibernate配置中timestamp类型字段插入、更新后自动赋值的配置
- iframe里面 怎么让页面的大小自动调整到框架的大小
- 怎么制作当字段增长时,自动换行且框线随之加大的水晶报表
- 如何向 Oracle 表中的 Date 字段插入日期及时间
- MYSQL里面统计一个表的列数(即字段数目)怎么查
- 解决:c#中获取刚插入SQL SERVER的自动编号字段值。
- 向ACCESS中的"时间/日期"字段中插入DateTime.Now时出现“标准表达式中数据类型不匹配。”错误的解决办法
- 自动编号的字段怎么让他重新从1开始编号
- php读取的mssql日期字段日期会自动转换成中文
- 如何向 Oracle 表中的 Date 字段插入日期及时间
- C# MS Access数据库日期字段插入空值
- 新手求助2---怎么在cnblogs里插入下载文件 的链接?如何 插入自动播放的 flash 或者 背景音乐?
- access中[身份证号]字段有效性规则的代码实现,以及自动从[身份证号]提取出生日期和性别
- 向ACCESS中的"时间/日期"字段中插入DateTime.Now时出现“标准表达式中数据类型不匹配。”错误的解决办法
- MyEclipse 自动插入注释日期