Can jdbc be written once but run everywhere?
hi everybody,
i am using jdbc. Since for different databases, their sql statements are not exactly the same. So my jdbc program which is written for an Oracle database cannot run for a MySQL database. For example, in Oracle, i created a silly table like this:
CREATE TABLE hello (
id integer,
primary key (id) );
but in MySQL, in order to create the same table, i have to modify my sql statement like this:
CREATE TABLE hello (
id integer primary key );
So , if i create such a table in my jdbc program, i have to modify my codes so as to migrate my jdbc program from Oracle to MySQL. For a java programmer who wants his programs to be written once but run everywhere, this is not a beautiful thing.
I dont know if SUN has provided some technologies to avoid this dependence. Perhaps SUN has defined a unified sql for java(jsql?) and make the translation from jsql into special sql of different databases a task of jdbc drivers?
Heavy Z
Hi,
This is a simple one compared to the lazy way that MS decided to implement Access database and the sql code. The wildacard * does not work from java programs where you have to use the %.
Fortunately, maybe, standards are improving, but be aware that you may have to know silly discrepancies until there is proper standardisation.
This includes the different spellings between English and American too.
best
kev
Similar Messages
-
Can the program written using J2ME run in pocket pc 2003 OS (Ipaq h4150)?
I would like to run java program to run in my pocket pc with 2003 OS (Ipaq h4150).
If I write my java program using J2ME, can this program run in my pocket pc (Ipaq h4150)?
Advice is much much appreciated. Thanks a lot!I would think if you found the correct JVM for a piece of hardware, then it could run Java. I know that is the case with cell phones at least.
-
The first songs i've downloaded and synced with my new touch have created ghost songs. They are only on my computer in itunes once but appear on my ipod twice, one copy that won't play. I can't delete them. I've tried unticking all the music that was on the ipod via itunes and re-syncing, which in theory should delete all music from my ipod. It does except for the 5 ghost songs. So at present I have no music on ipod except the 5 ghost songs. Has anyone got any ideas how I can get rid of these?
I had no problems with my ipod touch 4th, which I had for years. Any help would be great.iOS: Device not recognized in iTunes for Mac OS X
Or
See
iOS: Device not recognized in iTunes for Windows
- I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
- Then do the other actions of:
iOS: Device not recognized in iTunes for Windows
paying special attention to item #5
- New cable and different USB port
- Run this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Also see:
iPod not recognised by windows iTunes
Troubleshooting issues with iTunes for Windows updates
- Try on another computer to help determine if computer or iPod problem -
My computer died when I was syncing music from iTunes onto my iPad. I can reset it and get it running, but I want to get back my photos and videos. How do I get back photos and videos in recovery mode?
Clucktastic wrote:
How do I get back photos and videos in recovery mode?
Once the Device is asking to be Restored with iTunes... it is too late to save anything...
See Here > http://support.apple.com/kb/HT1808
Once you have Recovered your Device...
Re-Sync your Content or Restore from the most recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766 -
Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all?? Looks like I can set it for one but not others. All, one, or nothing
Hey Eric,
Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
Again, thanks for trying, it is appreciated. -
Hi, Can you help me I am running an iMac 10.7.5 and iPad 6.0.1 and a macair10.8.2. iCloud is syncing emails and notes but not photos. Photo streaming is switched on on the iMac. what do I need to do to stream photos?
Hi you have basicly 2 Options.
1 -if you Switch One fotostream on all 3 devices of yours which are working on the same apple id -all Fotos you Take with your iPad will be synchronized via icloud to the other 2 decvices ( w-lan and battery depending).
2- If you select foots or a whole album in iPhoto on your air or iMac and choose than puplish --> fotostream --> new or existing event you can key in a friends mail. If this friend has iCloud and iPhoto ( for iMac or MacBook ) and click on the link in the email it will download this fotos in the fotostream section in iPhoto. If he has a iPad, iPhone,... It will do it in the foto app and if he doesn't have a iCloud account at all and you choose "public web site" while publishing he can see your fotostream on a website. -
I can watch it with Safari on my mac and on my iPhone as many times as I like. But I can only watch it once on Firefox.
If reloading works after clearing the cache then that can be an indication that the server sends the file compressed. If the file is compressed and is partly uncompressed in the cache and Firefox tries to retrieve the remainder and restarts at a wrong position (difference between compressed and uncompressed content) and thus the file gets corrupted.
You can try to contact the hosting company of your website to ask them about this.
A test can be to set the pref network.http.accept-encoding to an empty string on the about:config page.
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
You can use the Filter bar at to top of the about:config page to locate a pref more easily. -
Because of a problem, I uninstalled Firefox once, reinstalled it and it ran. I had a problem so I uninstalled/reinstalled it again. Now it will not run. I get an error message saying that firefox is running and you can only run one at a time. I have uninstalled multiple times and can't figure out what is running. The is only one Firefox installed and it is not open. What does this mean and how do I fix it?
If you use ZoneAlarm Extreme Security then try to disable Virtualization.
*http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
See also:
*[[/questions/880050]] -
How do I move a movie I have synced from iTunes into the "Movies" tab of the Video App? I need to access a slideshow I made in IMovies and may not have WiFi. I did it once, but can't figure out how to do it again! The file is an m4v. Thank you!
Im just guessing but it seems like you would have to get your movie into the correct folder on a computer then use iTunes to sync it to your iPad. If you've synced to a computer and have movies then on your computer should be a folder with the movie in it. You could export your iMovie to something like Dropbox then download from Dropbox to the folder you think it needs to be in the sync your iPad again. Again this is just a guess. Others may have a better answer.
-
I want to deauthorize my apple id from all the 5 computers that i had authorize. Now I am unable to deauthorize. What can I do?
Teh option to deauthorize all authorized computers at once can only be done once a year. But if you have access to those 5 computers, you can dauthorie them one by one.
iTunes Store: About authorization and deauthorization
http://support.apple.com/kb/HT1420
If you no longer have access to the computers, contact iTunes support to deuathorize them for you:
https://expresslane.apple.com/Issues.do -
I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes: Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufacturer for assistance. I am on a MacBook pro running 10.5.8 OS. Has anyone seen this before and how can I get it resolved.
Thanks for your help in advance....Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
Thanks! -
Hard drive is missing. I can boot from the cd but when running the disk utility, no hard drive shows up.
This is a problem that suddenly appeared.Please post a screenshot of Disk Utility that shows what you mean. Be careful not to include any private information.
Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply. -
I recently signed up for iTunes Match. It works well on my iPad2 but not my iPhone 4S. A while ago my music did show up on my phone but much of it was grayed out. Now I don't see anything on my iPhone. I've tried everything I can think of. I'm running the latest operating system and software
Try the tips in this thread: iTunes Match - 'No Music' on iPhone 4
-
I am running 10.8 and I am trying to get a E-mu 1x1 midi/usb connector to work with my keyboards. It's not working with any keyboard at all. I believe it is a Mainstage/Mac issue. Mainstage can recognize the the interface but it won't work.
Here are two screen shots to show you what I am seeing. The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as). The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue). However when I click on the user "Orion" nothing happens. It will not change to highlight that user.
-
Using an own function in a select how can i set that the function run once?
Hi
Using an own function in a select how can i set that the function run once, not in every row?
Please help me
Thanks
ViktorSomething like this ?
SQL> select * from dept;
DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
SQL> create or replace function ret_name (deptnum in number) return varchar2
2 is
3 name varchar2(50);
4 begin
5 select dname into name
6 from dept
7 where deptno=deptnum;
8 return name;
9 exception
10 when no_data_found then
11 return('Not existent deptno');
12* end;
SQL> /
Function created.
SQL> select deptno, decode(rownum,1,ret_name(deptno),null) dname from dept;
DEPTNO DNAME
10 ACCOUNTING
20
30
40
SQL>
Maybe you are looking for
-
Can someone help me tell what Ram i need for my macbookpro 7,1
please help my an tell me what speed and everything for my macbook pro7,1 13'' Model Name: MacBook Pro Model Identifier: MacBookPro7,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.4 GHz Number Of
-
Enhancing performance of BLOB loading
Hi, I am loading one row of BLOB data using DBMS_LOB Package. To load 5 GB of BLOB data its taking 8:53 Minutes. Due to some restriction in the target database, SQL *Loader can't be used. Is there any other option/method to fasten the performance of
-
Admin Services - Data Prep Editor: Save, Open, Open Data File - Hangs
The problem is that whever I try to Open, Open Data File or Save while in Data Prep Editor, the Admin Console Hangs. It shows as Responding in the task manager, but the screen turns grey (hangs) and the admincon.exe process is constant at about 50% C
-
Own artwork not importing in iTunes
When i try to import my own artwork into itunes the artwork does not appear. This is only a problem for tracks that were imported using v7.1.x and onwards of itunes. I have tried changing the file format for the tracks that I import but that doesn't
-
I have 4 tabs that I always use and I would like to know how I save them so that every time I open mozilla all 4 of those tabs are already there so that I don't have to manually create each new tab every time