Home >Database >Mysql Tutorial >Date value is not populated when inserting order using native SQL in SAP
I think you need to add a colon before the variable like this:
EXEC SQL. INSERT INTO order VALUES('2', :sy-datum) ENDEXEC.
I also recommend you to use OpenSQL here instead of Native SQL. When you try to use any database-specific functionality, native SQL is used.
The query you are using is very general and not specific to the backend database.
The above is the detailed content of Date value is not populated when inserting order using native SQL in SAP. For more information, please follow other related articles on the PHP Chinese website!