| To: | Getting Started <gettingstarted at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: What is a database record? |
| From: | Will Leshner <will dot leshner at gmail dot com> |
| Date: | Tue, 28 Dec 2004 12:19:43 -0800 |
| Delivered-to: | gettingstarted at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=oodUhh2jCcyfy0gm3F4cZ/woK6DgrDRGYZO/MZi+XjBd5ad5Htjqd1E4edGuFpn6APj0RWJjIAy2a059/EHCBRKYR6uGASE9Kprse/uN4BrlU+kfb0jhX9LE1JX4cJBbo3RRomauMD+53sNQc5LgE9wzJYUe6cseveTmGW5Ehe8= |
| References: | <8CCA3D6A-5902-11D9-977D-003065D91F8C at MacDialUp dot com> <3396e7e204122811176f29652 at mail dot gmail dot com> <D11FDF9F-590A-11D9-BB63-003065D91F8C at MacDialUp dot com> |
On Tue, 28 Dec 2004 14:58:17 -0500, Wayne Dreier
<realbasicnovice at macdialup dot com> wrote:
> I know, you'll reply with something like - "You have to tell RecordSet
> the number of rows"
No, actually I was going to say that the RecordSet tells you how many
rows it has. For example, let's say you wanted all the rows where the
lastname field was "Smith". You'd use a query like this:
rs = db.SQLSelect("Select firstname,lastname,age,whatever from
sometable where lastname='Smith')
Exactly how many rows that it is you won't know until you get the
results back from the database. Then you can loop through the
RecordSet, adding each record (row) to your ListBox.
--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: What is a database record?, Wayne Dreier |
|---|---|
| Next by Date: | Re: What is a database record?, Phil Mobley |
| Previous by Thread: | Re: What is a database record?, Wayne Dreier |
| Next by Thread: | Re: What is a database record?, Russ Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |