|
-
May 25th, 2001, 10:27 AM
#1
recordset help
ok, i am completly new to asp and database development so please bear with me.
i know how to connect to the database and use a record set. But how do i use aggragates with a recordset
Code:
sql = "select column1 from table1"
varTest = rs("column1") <---- easy
sql = "select count(*) from table1"
varTest = rs("?????") <--- what goes here?
-
May 25th, 2001, 11:02 AM
#2
Black Cat
Give it a name using the AS:
Code:
sql = "select count(*) as name1 from table1"
varTest = rs("name1") <--- what goes here?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 25th, 2001, 11:57 AM
#3
i knew it was something simple, thanks alot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|