我正在尝试使用 SQLite 的一些函数创建一个复合键,但列 'newdate' 和 'newckey' 并且在我运行查询时显示为空白。有什么建议吗?
SELECT *,
(repeat||date) as 'ckey',
(repeat||newdate) as 'newckey'
FROM (SELECT transactions.id,
transactions.repeat,
transactions.date,
datetime(transactions.date,'+'||repeattransactions.interval||' days')
AS 'newdate'
FROM transactions, repeattransactions
WHERE transactions.repeat = repeattransactions.id
)