打印选定的学生数据 [英] printing selected student data
本文介绍了打印选定的学生数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以打印多个学生数据.我有50个成员要打印,但是我想同时打印30个成员.先打印10个,然后再打印10个,再打印10个.如果是这样,请告诉我如何...谢谢...
或者我可以使用一个功能来打印除这5个成员以外的所有成员.
请帮助我...谢谢:)
Is it possible to print multiple student data. I have 50 members to print, but i want to print 30 of them simultaneously. print first 10, then next another 10, then another 10.. if so, please tell me how... thanks...
or can I have a function that prints all members except this 5 members..??
please help me... thanks :)
推荐答案
使用SQL查询,您可以在SELECT查询中使用NOT IN或EXISTS/NOT EXISTS.
例如
Using SQL query you can use NOT IN or EXISTS/NOT EXISTS in your SELECT query.
Ex.
SELECT * FROM [tblStudent] WHERE StudentID NOT IN (1,2,3,4,5)
SELECT * FROM [tblResult] WHERE StudentID EXISTS (SELECT * FROM tblStudent WHERE Result='PASS')
>
在C#中,可以对数组使用String.Contains
方法
In C#, you can use String.Contains
method with array
string[] fruits = {"apple", "banana", "mango", "orange", "cherry", "grape"};
string fruit = "mango";
bool hasMango = fruits.Contains(fruit);
您也可以使用循环来检查值的存在.
Also you can use loops to check the existence of values.
这篇关于打印选定的学生数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文