我怎样才能在这里插入日期.. [英] How Can I Insert Dates Here..

查看:87
本文介绍了我怎样才能在这里插入日期..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我解释一下,表格中有4列test_no(自动生成),test_date(文本),test_cycle_No(数字),test_day(数字)





所以现在问题是测试没有,因为我说是自动生成,test_cycle_no和test_day这两个列值已经在数据库中,但我必须生成并插入日期列值externalyy ...



i已编写生成日期值的代码

但我希望此日期值应插入此表中,包含所有这些列。

所以我应该写什么查询????

let me explain i have 4 column in a table test_no(autogenerate),test_date(text),test_cycle_No(number),test_day(number)


so now the problem is test no as i said is autogenerating ,test_cycle_no and test_day this two column value are already in database ,but i have to generate and insert date column value externalyy...

i have written code for generating date values
but i want that this date values should be inserted here in this table ,consisting of all this columns.
so what query should i write ????

推荐答案

在这种情况下你不插入。

你更新和基于自动生成数的现有行。

例如更新表集test_date = @value其中test_no = @ testno
You do not insert in this case.
You update and existing row based on the auto generating number.
E.g. Update table set test_date = @value where test_no=@testno


这篇关于我怎样才能在这里插入日期..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆