Why can't insert number value in Access2000?
I use Microsoft Access 2000 Database,I create a table named test,it contains one column named col1,it's type is number.
then I use statement like follows:
String str="insert test(col1) values(1)";
...
stmt.executeUpdate(str);
When I run it,it raise error:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] INSERT INTO statement grammer error.
But if column's type is Text,I use str="insert test(col1) values('1')"; it can run success.Why I can't insert number type value in Access 2000?
How to insert into number value in Access 2000?
|