SQL help
When trying to update a value in my database I get the error
however I heard this is common and usually means the SQL statement is wrong
Here is my SQL string
After inputting the variables into the Sql it looks like this
A picture of the database is attached
The ExecuteSqlQuery method works as intended, at least for all my other SQL requests, however they all use either DELETE, INSERT or SELECT
Thanks
11 Replies
i dont know what your problem is but i would be careful injecting stuff into a SQL statmetn the way you are. Its probubly a better idea to do
Yeah I was thinking about doing that but i didn't know how to properly implement it
I will try and make it work and see if that may fix something as i saw on stack overflow that fixed it for someone else
not a huge issue for testing, but if this becomes public facing it will open you up to SQL injection attacks
Its just for my computer science project for college
your probubly fine than
¯\_(ツ)_/¯
yeaj
yeah
will get me more marks i guess
depends on how much they care
i managed to fix it
i needed ' ' around my variables
🤦♂️
thank you anyway for the help
yo. clasic sql blunder
make sure to close the ticket
ok
will do
thanks
np