Search code examples
javasqlucanaccess

Java Error Database sql Commands Unexpected Token


when I am trying to insert some data into the database it gives me this error

[![ unexpected token][1]][1]

my insert query is correct
its

This is my insertion query any wrong bracket places in the string are not wrong because i copied it from the console and because of the Arabic language in the print the bracket places are not correct


Solution

    • You have to add values same type of added column nvarchar has to be surround with single quote => 'قسم العجوزة' null without single quote => null numbers int,bigint,bit no need for single quote => 389.0
    • inserted values has to match columns