使用单个插入命令一次插入多行? [英] insert multiple rows at once with a single insert command?

查看:132
本文介绍了使用单个插入命令一次插入多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要插入培训课程表

这样的时间表


CheckBox可以检查课程的日期.
周六周日周一周二周三周三周四周五
从下拉列表中选择时间
要下拉列表以选择时间To

这是图片
我该如何实施?
当他必须至少选中一个复选框并最多选中7个复选框时

我该如何在一个命令中插入所有这些内容?

i need to insert Schedule for training course

the schedule like that


CheckBox to check the days the course will in it.
Day Sat Sun Mon Tue Wed Thu Fri
From DropDown List to choose time from
To DropDown List to choose time To

This is the image
How can i implement this ??
when he must check at least one check box and at most check 7 check boxes

how can i insert all of this at one command

推荐答案

在不知道数据库和系统设计的情况下,很难回答这个问题.在对所需内容一无所知的情况下,创建一个事务并调用多个insert语句以将所需记录添加到数据库中,并在最后将其承诺.
Without knowing the design of your database and system it is tough to answer this question. With the little knowledge of what you want, create a transaction and call multiple insert statements to add the records you want into the database and comit it at the end.


这篇关于使用单个插入命令一次插入多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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