- My goal: insert Data from Excel file after it is showing in table component.
- Issue: SQL return error
- Steps I've taken to troubleshoot: Used Deepseek and ChatGPT
- Additional info: Self-hosted 3.114.3 and low to non knowlage about JS
INSERT INTO tempData
(
Id,
Produsent,
CreatedDate
)
VALUES
{{ table3.data
.filter(row => row.fldbeskrId && row.Produsent)
.map(row => `(
'${row.Id}',
'${row.Produsent}',
${row.CreatedDate ? `'${row.CreatedDate}'` : moment().add(1, 'hour').toISOString() }
)`).join(",") }}
I get:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' at line 8
I hope somebody can help me?
In advance thank you.
