如何在单列中将多个记录从前端插入到数据库中 [英] How to Insert multiple records from front end to database in single column

查看:165
本文介绍了如何在单列中将多个记录从前端插入到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iam在数据库中有问题和问题栏目

这里我已将10个问题插入单栏即问题但是只需一次插入只需一次点击



i想要这样插入:





考试问题

---------------------------------

1 question1

question2

question3

question4

*

*

*

question10

iam having examid and questions columns in database
here i have insert 10 questions into single column i.e questions but examid only one time insert with in one button click

i want to insert like this:


examid questions
---------------------------------
1 question1
question2
question3
question4
*
*
*
question10

推荐答案

如果它们是两列,那么您可以轻松插入,如果没有,那么您只需在第一列中添加考试ID用我们的编程语言记录,然后像往常一样记录。另外,你可以使用存储过程来完成同样的工作。
If they are two columns then you can easily insert, if not then you just add the exam id in the first record by our programming language and then the rest as usual. Other wise you can use stored procedure to do the same work.


这篇关于如何在单列中将多个记录从前端插入到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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