Page 1 of 1

Zquery Select * Form table ROWS 0 TO 100 ERROR

Posted: 23.05.2010, 13:23
by sfxcc
If i do :

Zquery Select * Form table ROWS 0 TO 100
ERROR : .... blabla have to be >= 0 ...

But is = 0 so ...

if i do ROWS 1 to 100 it works fine ...

( I need only the Field header Title) SO i NEED only ROWS 0 to 0


Does any one know how to get Title only without any lines.

Posted: 23.05.2010, 14:39
by seawolf
Sorry, I don't understand ..
Do you need the first record of a select? In this case you can use First method.
Do you need the column names? Method Fields.GetFieldNames

Posted: 24.05.2010, 06:39
by exdatis
If you want LIMIT(mysql, postgresql), then:
SELECT FIRST 20 SKIP 40 FIELD_ONE,FIELD_TWO from TABLE1
also, for all :
SELECT FIRST 100 * FROM TABLE_NAME.
:?:

Posted: 26.05.2010, 23:52
by mdaems
sfxcc,

If I understand correctly you want to see zero lines from your query but get the right column headers from the query.

The easy way : Select * Form table where 1=2

This selects an empty dataset, but the column headers are incuded in the result.

Mark