这是我的程序
clause1(A,Answer2):-
atom_concat(A,' = 2',Answer),
Answer2 = [Answer].
当我跑步时
?- clause1(var,Answer2).
我得到了
Answer2 = ['var = 2'].
但我想要
Answer2 = [var = 2].
答案 0 :(得分:1)
这可以完成这项工作:
SELECT U.userFirst, U.userLast, C.clubName FROM club AS C
INNER JOIN vehicle AS V
on C.clubID = V.clubID
INNER JOIN participant AS P
on V.vehicleID = P.vehicleID
INNER JOIN user AS U
on P.userID = U.userID
ORDER BY C.clubName ASC
我认为你不能用空格[var = 2]
得到结果