I just noticed something i don't really get. I added a new record to the table Actor (i'm making a personal movieDB) and i used the auto generation of the ID to make a new unique ID. This was the first record in the table so naturally it was given the value 0. If i however try to delete the record using that ID nothing happens. It is as if the value in the database is not really a normal 0 and thus the ID's don't match up.
The table itself is very basic. ID(bigint), Last_Name(nvarchar), First_Name(nvarchar)
Using this statement to get the value of an ID it returns the value '0'
SELECT Actor_ID
FROM Actor
WHERE (Last_Name = 'test')
Therefor i input the value in the next query and every time i get the message '0 rows affected by last query'
DELETE FROM Actor
WHERE (Actor_ID = '0')
I tried adding a record with ID 0 manually and there was no poblem whatso ever deleting it.
What am i missing here?