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

How to pass an integer/other variables between threads in java?
How to shutdown JVM if one thread crashes in a multithreaded environment?
Method always wants me to keep other ones in static [duplicate]
left join first match in hql
Upgrading Jackson from 2.0.4 to 2.7.1
remove parent view to set a custom layout view
Can Spring XD be used as a message broker for notifications?
Android Studio: Displaying a list of pictures inside a folder?
BufferedWriter not writing in Java
org.ektorp.DocumentNotFoundException breaks java.io.Serializable?
Java: OpenGl ES 2.0 Shader Light
Deserializing into class extending LinkedHashMap with Gson
Adding external library to a LibGdx project
Change method's return type dynamically
Pass Strings from one activity to normal class
Need Help sorting out nested for loops

Categories

HOME
octobercms
rsync
analysis
baqend
alpha
serverspec
enterprise-library-5
opengl-es-2.0
multiple-records
synchronization
iggrid
session-variables
metatrader4
tomcat6
floating-action-button
qt-creator
phaser
decomposition
iolanguage
graphlab
google-static-maps
pythonanywhere
visual-composer
xlsxwriter
clickonce
scriptcs
intentfilter
telerik-reporting
restful-authentication
wijmo
autosys
shopware
facebook-access-token
react-css-modules
elasticsearch-ruby
gsoap
ioio
create-table
appfabric
hockeyapp
streamsets
g-code
spring-security-kerberos
sencha-touch-2.3
revapi
react-scripts
lowpass-filter
sqldf
webdriverjs
chord-diagram
yt-project
messenger
ableton-live
dstu2-fhir
django-debug-toolbar
gridview-sorting
hill-climbing
superstack
hover-over
pagerank
php-internals
natvis
tcpserver
prerequisites
tmuxinator
clicktag
xc16
device-manager
neolane
document-classification
p4java
fluentautomation
typo3-neos
gnu-smalltalk
page-layout
web2py-modules
gwt-rpc
eventual-consistency
quickdialog
jquery-ui-layout
pendrive
transactionscope
zpt
locationlistener
rfc1123
actionview
sortable-tables
xsdobjectgen
forums
zend-decorators
thread-local-storage
paul-graham

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile