如何使用c#在asp.net中使用数组存储数据库值 [英] how to store the database value using array in asp.net using c#

查看:202
本文介绍了如何使用c#在asp.net中使用数组存储数据库值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

教师表如下





教师



1

2

3

4

5

6

7

8

9

10







i希望使用数组存储上述Facultyid。



i查询如下



选择s.studname,f.bthid,a.Facultyid来自studdet s,facfeedback f,Faculty a

其中月份(b.examdate)= 9和年份(b。考试)= 2012和a.Facultyid ='';





来自a.Facultyid的上述查询我想通过( store)数组值教师ID。



我该怎么办?



我该怎么办?使用数组存储Facultyid并在上面的查询中传递该数组值。





我怎样才能使用csharp。


问候,

Narasiman P.

Faculty Table as follows


Facultyid

1
2
3
4
5
6
7
8
9
10



i want to store the above Facultyid using array.

i have query as follows

select s.studname,f.bthid,a.Facultyid from studdet s, facfeedback f,Faculty a
where month(b.examdate) = 9 and year(b.examdate) = 2012 and a.Facultyid = '';


from the above query in the a.Facultyid i wan to pass(store) the array value faculty id.

for that how can i do?

how can i store the Facultyid using array and pass the that array value in the above query.


for that how can i do using csharp.

Regards,
Narasiman P.

推荐答案

最简单的方法是使用ADO.NET:示例 [ ^ ]
The least complex method would be using ADO.NET: examples[^]


这篇关于如何使用c#在asp.net中使用数组存储数据库值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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