selec/3 implem
This commit is contained in:
parent
b6df1b1ade
commit
f968fda270
|
@ -247,7 +247,11 @@ selector(Row, Cols, [+Selector|Selectors], AccCols, AccVals, ColumnNames, Column
|
|||
Simplified variant of the selec/4 predicate when there are no conditions
|
||||
to be checked.
|
||||
*/
|
||||
/* selec(TableOrTables, Selectors, Projection). */
|
||||
selec(TableOrTables, Selectors, Projection) :-
|
||||
tabl(TableOrTables, Cols),
|
||||
row(TableOrTables, R),
|
||||
selector(R,Cols, Selectors, [],[],ColumnNames,ColumnValue),
|
||||
Projection = ColumnNames/ColumnValue.
|
||||
|
||||
:- dynamic query/2.
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue