Hi Anahit, I think here’s your answer: https://forum.mendix.com/link/space/studio%20pro/questions/106756
Even though you got your answer on OQL not being possible for inserts already, SQL could be used.
I am advising you not to follow this path of SQL inserts unless there is a very good use case for it. See for reasoning, mainly about the Mendix identifiers reservation and construction, an old but still very informative post on this:
https://forum.mendix.com/link/space/other/questions/4441
Why do you think it is better to use scripting instead of a microflow/nanoflow?