getrows和getstring之间的区别 [英] Difference between getrows and getstring
本文介绍了getrows和getstring之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么区别,何时使用其中一个?
谢谢
What is the difference, and when to use one over the other?
Thanks
推荐答案
GetRows()通常在您仍然需要逐行处理时使用,
或者您需要单独引用集合中的某些成员。 br />
当你需要一个格式化的字符串时,GetString()很有用,该字符串对于行和行之间的内容有简单的确定。和列 (例如,不要太多
复杂的迭代或条件逻辑,比如交替显示
显示的行颜色)...在这里看一个用法: http://www.aspfaq.com/2482
了解更多比较资料,请参阅 http://www.aspfaq.com/2467 >
A
" Crane Linkledder" <黎******** @ NOTADOMAIN.com>在留言中写道
新闻:uL ************** @ TK2MSFTNGP11.phx.gbl ...
GetRows() is typically used when you still need to do row-by-row processing,
or you need to refer to certain members in the set individually.
GetString() is useful when you need a formatted string that has simple
determinations for what goes between a "row" and "column" (e.g. not too much
complex iteration or conditional logic, like when alternating row colors for
display)... see one usage here: http://www.aspfaq.com/2482
For more comparison stuff, see http://www.aspfaq.com/2467
A
"Crane Linkledder" <Li********@NOTADOMAIN.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
什么是什么区别,何时使用其中一个?
谢谢
What is the difference, and when to use one over the other?
Thanks
GetRows返回二维记录集的数组。 GetString返回
您的记录与所有其他文本连接在一起,如果您选择
。
http://msdn.microsoft.com/library/en...damth02_10。 asp
http ://msdn.microsoft.com/library/en...damth02_11.asp
雷在工作
" ; Crane Linkledder <黎******** @ NOTADOMAIN.com>在留言中写道
新闻:uL ************** @ TK2MSFTNGP11.phx.gbl ...
GetRows returns a two dimensional array of the recordset. GetString returns
your records all concatenated together with some other text in between, if
you choose.
http://msdn.microsoft.com/library/en...damth02_10.asp
http://msdn.microsoft.com/library/en...damth02_11.asp
Ray at work
"Crane Linkledder" <Li********@NOTADOMAIN.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
什么是什么区别,什么时候用另一个?
谢谢
What is the difference, and when to use one over the other?
Thanks
感谢你们两位。最后一个问题。使用getrows时,是否可以排除特定列?$ / b
我在SELECT语句中选择的列多于我想要显示的列数<屏幕上显示
。我怎样才能过滤掉它们?
谢谢
Crane Linkledder <黎******** @ NOTADOMAIN.com>在留言中写道
新闻:uL ************** @ TK2MSFTNGP11.phx.gbl ...
Thanks to the both of you. One last question. When using getrows, is it
possible to exclude specific columns?
I am selecting more columns in my SELECT statement than I''d like to display
on screen. How can I filter them out?
Thanks
"Crane Linkledder" <Li********@NOTADOMAIN.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
什么是什么区别,何时使用其中一个?
谢谢
What is the difference, and when to use one over the other?
Thanks
这篇关于getrows和getstring之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文