Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A pseudo SEEK() Function to be used with SPT
Message
 
To
05/07/2002 10:23:55
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00675579
Message ID:
00675617
Views:
10
Fernando,

>First of all, thanks for replying!
No problem :)

>The "Select 1" syntax is accepted by all SQL engines?

That's a good question ... I would assume that at least most db servers support this, since you're only supplying a constant in the select list. There's nothing really special to it.

> Initially I thought using the "Select Top 1" syntax, but Informix doesn't accept it.

The TOP clause is AFAIK not an ANSI standard clause, so I wouldn't expect it to be running on all RDBMS.

> Using the "Select 1" syntax with an Informix table returned me a result cursor with only one column named "Exp" with all values of "1".

The expected result of a SELECT 1 FROM table WHERE id=99 is to return a recordset with one column containing "1". Is that what you get?

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform