【发布时间】:2019-10-05 06:02:08
【问题描述】:
我想插入日期和月份(在两个 datetimepicker 中)以及插入值选择查询。
我的invoice 表中有五列
Student_id, Amount, Fee_description, issue_date, month
我可以插入前三列的值,但其余两列为空,我不知道将 datetimepicker 值放在哪里??
我在表单的设计视图中为日期和月份选择了一个数据时间选择器
insert into invoice (Student_id, Amount, Fee_description, issue_date, month)
select
student.Student_id,
Fee.Fee_Amount, Fee.fee_type
from
student
join
parent on student.father_nic = parent.father_nic
join
allocate_class on student.Student_id = allocate_class.Student_id
join
class on class.class_id = allocate_class.class_id
join
session on allocate_class.session_id = session.session_id
join
Fee on class.class_id = Fee.class_id
where
session.session_id = 1
and Fee.fee_type = 'Tution Fee'
and student.status = 'active'
在上面的查询中在哪里添加两个 datetimpicker 值?
【问题讨论】:
标签: c# sql datetime sql-insert datetimepicker