java


how can solve these trouble when i convert form apathy server DB to derby DB


because i'm convert my concoction DB to derby in netbeans
all statement happen error in it.
the error is it
java.sql.SQLSyntaxErrorException: table or view does not exist.
to solve problem must be change in all attribute and tables name
by Place it between brackets
for example
st.executeQuery("SELECT * FROM loges ");
not run its syntax error
must change to
st.executeQuery("SELECT * FROM \"loges\" ");
Then it works properly
doing this very hard,i have 137 query statement contain a lot
of tables and attribute names.
i'm doing this change because extract my project to executable desktop program
if can make this in other way will be good
If your code uses all unquoted table and column names, then your database schema should be created with unquoted names.
If you're having trouble now, then your new database was created/migrated with quoted names. Fix that, and you code will work unchanged.
Be aware that databases treats unquoted names differently, e.g. Oracle will change the names to uppercase, PostgreSQL will change the names to lowercase, and MS SQL Server will store the names as given, but will by default match them case-insensitively.
You should create the tables without double quotes, as explained in the duplicate question

Related Links

Android Annotations Custom View
Best way to increase counter in Java and C++? [duplicate]
Store password within app
How to render colours properly in Java Graphics
HashMap initialization NullPointerException
Java : What format is this double in and how can I convert it?
Struts2 iterator display
How to make my converting millis to work with big numbers [duplicate]
Trim a possible prefix of a string in Java
URL parsing in Java
Set Class fields in jni
When I create Intent, he created with value null
JavaFX 2 images location
Getting java.lang.RuntimeException: Cannot get the System Java Compiler. What could be the reason for it?
Android Timer stops after 0,2 - 2 secs
How can I set the margin of a JLabel?

Categories

HOME
xamarin
listview
plone
office365api
jsp-tags
disassembler
alpha
fingerprint
mvvmcross
pheatmap
applepay
google-translate
maude-system
metatrader4
kentor-authservices
qt-creator
google-apps-marketplace
leiningen
django-simple-history
uitypeeditor
workload-scheduler
facebook-page
apache-metamodel
autoconf
cloudhub
arabic
graphicsmagick
kvc
cas
su
status
react-css-modules
phpfox
nat
frame
nameservers
semantic-versioning
create-table
karaf
jspresso
usbserial
subset-sum
outlook-api
s
segment
qcombobox
parentheses
apache-fop
typed-lambda-calculus
or-tools
color-picker
autorest
lua-5.1
hill-climbing
ptrace
hsv
tcpserver
reactive-banana
jms2
sdhc
spidermonkey
quicklisp
wyam
inmobi
kineticjs
uitouch
hippomocks
braille
rtmfp
picturefill
mcts
c18
ccss
seed
android-hardware
robotics-studio
twrequest
hosts-file
osql
whoosh
gcj
xtype
visitor-statistic
blitz++
rescale
web-architecture

Resources

Encrypt Message