❔ SQL syntax error - INSERT INTO statement

query looks like this
string query = $"INSERT INTO users " +
                $"(fname, username, email, password, age, gender, state) " +
                $"VALUES ({fname}, {username}, {email}, {password}, {age}, {gender}, {state})";

get a syntax error

please keep in mind this is something for school, stuff like SQL Injections and other new features are dismissible
thanks in advance, benAmi
Was this page helpful?
❔ SQL syntax error - INSERT INTO statement - C#