Hello, does anybody know how to insert a new row into my table??
My table is named table4 and it is using this query;
SELECT
*
FROM
earnedmile
WHERE
userid = {{table2.selectedRowKey}}
I attempted to use the query, and although it successfully inserts a row into the table, I find myself having to revisit the query later on to update the values for a new entry. Ideally, these values should be sourced from the data itself, with the only manual input being for the "miles" value.
INSERT INTO
earnedmile (miles, transactionDate, transactionValue, id, updatedAt)
VALUES
(50, '2023-10-18', 0, 'id', '2023-10-18');