I have a column in my table, it holds values such as 100012345. The column is varchar. Now I want to compare this to similiar values in a where:
... where my
You can cast the value to an integer:
CAST(myColumn AS INTEGER)