Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing Create table query in MS Access

 
Mrutyunjay Hanchinal
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need to create table from my Java code.
I need to specify default value to a column as 0.
If I specify with default keword as in Oracle it gives Syntax Error..
How do I do that?
Thanks
Mrutyunjay
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. (Or, you change your URL to point to an Oracle database).
AFAIK, there is no way to set the default value (or even to retrieve the default from SQL) for a column. Nor is there a way to set the format, or to retrieve the help text/description associated with the column. Access has its limitations.
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact... I didn't think the default you set for a column in Access had any effect on INSERT done over ODBC or JDBC. Someone correct me if I am rong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic