aspose file tools
The moose likes JDBC and the fly likes how set Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "how set "default" inthe name of column ?" Watch "how set "default" inthe name of column ?" New topic
Author

how set "default" inthe name of column ?

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi
i try to run this code :



i get sql error near "`defualt` tinyint(1) NOT NULL default '0'," .

please help me !!!
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

Since it's a numeric type, have tried "default 0" without the quotes around '0'.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how set "default" inthe name of column ?
 
Similar Threads
setBoolean - not working properly
Data not insert.
prepareStatement returns 0?
Mysql query
@JoinTable or @JoinCol...