I was trying to get the App to be able to update a table with a SQL View as data source, however I got the following error when I tried to save the changes:
Incorrect usage of UPDATE and LIMIT
Not sure if Iโve missed something or if this is possible at all?
Thanks all.
Yes, it is possible to update data through a SQL view. There is probably something off about your SQL view - are you able to do data inserts through it outside of appsheet? You can also look at your database logs to see the queries appsheet is using to help you troubleshoot.
I just checked the log it seems that query Appsheet tried to run is
UPDATE
table
SETcolumn
= โ111122333โ WHEREKey
= 'xxxx LIMIT
I tried removing the LIMIT
and successfully ran the query from the client, wonder if there is any options that I can control this on Appsheet?
Also referring to this on MYSQL Documentation:
For multiple-table syntax,
ORDER BY
andLIMIT
cannot be used.
Nope.
Your SQL view seems to be aggregated or refererencing to the multiple tables, which make SQL view as read-only.
It is not a matter of AppSheet or not, generally you are not able to edit that particular view.
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |