Re: Big numbers
- From: jameskuyper <jameskuyper@xxxxxxxxxxx>
- Date: Thu, 15 Jan 2009 15:31:52 -0800 (PST)
Flash Gordon wrote:
James Kuyper wrote:....
I don't think that's a relevant analogy. Let me suggest one I consider
more relevant. If you were to send me an e-mail asking me to send you
statistics on the annual exports from Peru in 2004, and as part of your
request you specify the layout of the report, complete with column
numbers and the number of significant digits to report, I would consider
that those specifications were part of the request, and that a change to
those specifications would be a change to the request.
Well, you would be wrong. The C statements:
handle = sqlprepare("SELECT A FROM B");
sqlexecute(handle);
contain absolutely NO information about how the value is to be returned.
Then those functions do not, as I understand the term, constitute the
entire query; they only implement part of it. I don't consider the
query to have been completed until the data is in your program in a
form that ordinary C code can work with. I'm not familiar with the
particular routines you're referring to, but a web search for
documentation mentioning those two functions leads me to suspect that
you must use functions like sqsbindcol() or sqlgetdata(), which do
specify the data type to use, before you can get data in a data type
of your choice. I didn't bother investigating closely enough to
determine whether there's a default data type that you can retrieve w/
o specifying what it is; but I would consider specification of any non-
default type, by whatever method, to be part of the query.
....
I disagree from it from the perspective of how SQL is defined in the
ANSI standard for SQL. I suggest you go and read the standard for SQL.
Correct terminology is important in areas other than C.
I agree that it is important. However, for much of this discussion
I've been talking about queries in general, not specifically ANSI SQL
queries.
I don't know how ANSI SQL defines the term; I'm using it a less formal
sense that includes everything that you need to tell the system that
in order for it to deliver the data to you in a form you can directly
use; and if there's any options about what form that is, informing the
system which option you want to select is inherently part of the
information you need to tell it.
.
- Follow-Ups:
- Re: Big numbers
- From: Flash Gordon
- Re: Big numbers
- References:
- Big numbers
- From: marc
- Re: Big numbers
- From: J. J. Farrell
- Re: Big numbers
- From: marc
- Re: Big numbers
- From: Joachim Schmitz
- Re: Big numbers
- From: marc
- Re: Big numbers
- From: jameskuyper
- Re: Big numbers
- From: Flash Gordon
- Re: Big numbers
- From: jameskuyper
- Re: Big numbers
- From: Flash Gordon
- Re: Big numbers
- From: jameskuyper
- Re: Big numbers
- From: Flash Gordon
- Re: Big numbers
- From: James Kuyper
- Re: Big numbers
- From: Flash Gordon
- Big numbers
- Prev by Date: Re: using pre-processor to count bits in integer types...
- Next by Date: Re: [META] News server that carries comp.lang.c
- Previous by thread: Re: Big numbers
- Next by thread: Re: Big numbers
- Index(es):
Relevant Pages
|