N
Nathan Sokalski
I am writing a Java program which involves creating a table in a Microsoft
Access database. I am having trouble creating the field which is of type
DECIMAL. I recieve the following error from Java:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax
error in field definition.
I tried entering the field as each of the following:
CREATE TABLE Employee(Salary DECIMAL)
CREATE TABLE Employee(Salary DECIMAL(10,2))
CREATE TABLE Employee(Salary Decimal)
CREATE TABLE Employee(Salary Decimal(10,2))
If anyone has any knowledge as to what the correct syntax is, I would
appreciate your help. I would also like to know of any reference sites that
show the syntax for the types when using CREATE TABLE. Thank You.
Access database. I am having trouble creating the field which is of type
DECIMAL. I recieve the following error from Java:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax
error in field definition.
I tried entering the field as each of the following:
CREATE TABLE Employee(Salary DECIMAL)
CREATE TABLE Employee(Salary DECIMAL(10,2))
CREATE TABLE Employee(Salary Decimal)
CREATE TABLE Employee(Salary Decimal(10,2))
If anyone has any knowledge as to what the correct syntax is, I would
appreciate your help. I would also like to know of any reference sites that
show the syntax for the types when using CREATE TABLE. Thank You.