X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref-fdml.xml;h=7113b6a98e3022056dcf050ecdc53a25520f44ab;hb=803a1953a42918411b4119b724d7a6e7227da83e;hp=c512cdb020f9d0829e16bfe5396a1d7a26f52e51;hpb=243188d5a588c42c3882846ab373d055da7a22e3;p=clsql.git diff --git a/doc/ref-fdml.xml b/doc/ref-fdml.xml index c512cdb..7113b6a 100644 --- a/doc/ref-fdml.xml +++ b/doc/ref-fdml.xml @@ -808,7 +808,7 @@ A field type - specifier. The default is &nil;. + specifier. The default is :auto;. The purpose of this argument is cause &clsql; to @@ -1133,7 +1133,7 @@ ID FORENAME SURNAME EMAIL Syntax - select &rest identifiers &key all distinct from group-by having order-by set-operation where result-types field-names flatp refresh caching database => result + select &rest identifiers &key all distinct from group-by having limit offset order-by set-operation where result-types field-names flatp refresh caching database => result Arguments and Values @@ -1188,6 +1188,22 @@ ID FORENAME SURNAME EMAIL + + limit + + + A non-negative integer. + + + + + offset + + + A non-negative integer. + + + order-by @@ -1232,7 +1248,7 @@ ID FORENAME SURNAME EMAIL A field type - specifier. The default is &nil;. + specifier. The default is :auto. The purpose of this argument is cause &clsql; to @@ -1341,8 +1357,8 @@ ID FORENAME SURNAME EMAIL specified lisp type. The keyword arguments all, distinct, from, group-by, - having, - order-by, + having, limit, + offset, order-by, set-operation and where are used to specify, using the symbolic SQL syntax, the corresponding components of the SQL @@ -1423,7 +1439,7 @@ ID FORENAME SURNAME EMAIL :result-types :auto) => (10) -(clsql:select [avg [height]] :from [employee] :flatp t :field-names nil) +(select [avg [height]] :from [employee] :flatp t :field-names nil) => (1.58999584d0) (select [emplid] [last-name] :from [employee] :where [= [emplid] 1]) @@ -1442,13 +1458,21 @@ ID FORENAME SURNAME EMAIL :flatp t) => (1 2 3 4) -(clsql:select [emplid] :from [employee] - :where [in [emplid] '(1 2 3 4)] - :flatp t - :order-by [emplid] - :field-names nil) +(select [emplid] :from [employee] + :where [in [emplid] '(1 2 3 4)] + :flatp t + :order-by [emplid] + :field-names nil) => (1 2 3 4) +(select [emplid] :from [employee] + :order-by [emplid] + :limit 5 + :offset 3 + :field-names nil + :flatp t) +=> (4 5 6 7 8) + (select [first-name] [last-name] :from [employee] :field-names nil :order-by '(([first-name] :asc) ([last-name] :desc)))