selec/3 implem

This commit is contained in:
duboissim 2024-03-14 18:53:32 +01:00
parent b6df1b1ade
commit f968fda270
1 changed files with 5 additions and 1 deletions

View File

@ -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.
/*