Trouble using INSERT with Accsess.
Hi
I am having problems Inserting data into the below table. The table itself seems fine but the 30 entries below are not working. I am a student and my notes will not help me, can anyone point me in the right direction.
CREATE TABLE CDTitles (
CatalogNumber Text(20) NOT NULL,
Title Text(30) NOT NULL,
Artist Text(20) NOT NULL,
Genre Text(15) NOT NULL,
Label Text(20),
Price Currency NOT NULL,
NumberInStock Text(15) NOT NULL,
PRIMARY KEY(CatalogNumber)
INSERT INTO CDTitles
( CatalogNumber,title,Artist,Genre,Label,Price,NumberInStock)
VALUES
(‘0001’,’AmericanGangsta’,’JayZ’,’Urban’,’Virgin’,9.99,’1000’);
(‘0002’,’Americana’,Offspring’,’Rock’,’Polydor’,12.99,’750’);
(‘0003’,’AwayFromTheSun’,’3DoorsDown’,’Rock’,’HMV’,9.99,’400’);
(‘0004’,’BarbraO’Reiley’,’TheWho’,’Rock’,’React’,9.99,’300’);
(‘0005’,’BackToBedlam’,’JamesBlunt’,’Rock’,’Virgin’,12.99,’1000’);
(‘0006’,’TheBestDamThing’,’JamesBlunt’,’Rock’,’Virgin’,9.99,’500’);
(‘0007’,’TheBestOf’,’WillieNelson’,’Country’,’VirginCountry’,8.99,’450’)
(‘0008’,’TheBlackParade’,’MyChemicalRomance’,’Rock’,’Virgin’,9.99,’600’)
(‘0009’,’Blackstyle’,’ChrisBrown’,’Urban’,’Polydor’,9.99,’750’);
(‘0010’,’TheBreakthrough’,’MaryJBlige’,’Urban’,’Island’,9.99,’900’);
(‘0011’,’TheColourAndTheShape’,’FooFighters’,’Rock’,’Virgin’,9.99,’1000’);
(‘0012’,’Confessions’,’Usher’,’Urban’,’Polydor’,9.99,’800’);
(‘0013’,’Curtis’,’50Cent’,’Urban’,’Virgin’,9.99,’850’);
(‘0014’,’TheDutchess’,’Fergie’,’Pop’,’Island’,8.99,’1000’);
(‘0015’,’Encore’,’Eminem’,’Urban’,’Virgin’,9.99,’500’);
(‘0016’,’EverywhereWeGo’,’KennyChesney’,’Country’,’Island’,8.99,’850’);
(‘0017’,’Blackout’,’BritneySpears’,’Pop’,’Virgin’,12.99,’900’);
(‘0018’,’Graduation’,’KanyeWest’,’Urban’,’Polydor’,9.99,’1000’);
(‘0019’,’Home’,’DixieChicks’,’Country’,’HMV’,7.99,’50’);
(‘0020’,’HybridTheory’,’LinkinPark’,’Rock’,’Virgin’,9.99,’900’);
(‘0021’,’Load’,’Metalica’,’Rock’,’Island’,7.99,’50’);
(‘0022’,’LonelyGrill’,’Lonestar’,’Country’,’Virgin’,9.99,’35’);
(‘0023’,’Loose’,’NellyFurtado’,’Pop’,’Polydor’,12.99,’550’);
(‘0024’,’Masterpiece’,’Nathan’,’Urban’,’Virgin’,9.99,’300’);
(‘0025’,’Millenium’,’BackstreetBoys’,’Pop’,’Island’,8.99,’250’);
(‘0026’,’MrBrightside’,’TheKillers’,’Rock’,’Polydor’,9.99,’1000’);
(‘0027’.’MyWay’,’Usher’,’Urban’,’Virgin’,12.99,’600’);
(‘0028’,’PCD’,’PussyCatDolls’,’Pop’,’Polydor’,9.99,’850’);
(‘0029’,’ThePickOfDestiny’,’Island’,’Rock’,7.99,’499’);
(‘0030’,’Reason’,’TheFray’,’Virgin’,’Rock’,9.99,’300’);
This should be 30 individual statements of the form:
INSERT INTO table (column list) VALUES (value list);
instead of a single INSERT statement followed by 30
value lists.No, because 30 individual statements is slow... it would be more performant to be one insert - select statement e.g.
INSERT INTO CDTitles
SELECT '0001','AmericanGangsta','JayZ','Urban','Virgin',9.99,'1000' from dual union all
SELECT '0002','Americana',Offspring','Rock','Polydor',12.99,'750' from dual union all
SELECT '0003','AwayFromTheSun','3DoorsDown','Rock','HMV',9.99,'400' from dual union all
SELECT '0004','BarbraO'Reiley','TheWho','Rock','React',9.99,'300' from dual union all
.
Similar Messages
-
McAfee SiteAdvisor is no longer working with my Safari 8.0. I never had trouble using it with Safari before this latest version. Has anyone else had this problem? I contacted McAfee support and they said nobody else is reporting this issue.
Wow, life is certainly tough for you.
S***t happens. That's why there's a warranty. -
Hello
I am having trouble using Microsoft Outlook 2010. When starting Microsoft Outlook displays the error message Mobileme has stopped working. Can anybody help.
ThanksWell yes, of course you are having trouble using MobileMe because MobileMe no longer exists and has not existed for the last 2 years at least.
MobileMe has been replaced by iCloud, so you will never be able to use MobileMe because it does not exist.
Also, I would suggest that you look more closely before you post, because you have posted this in an iPhone forum and this question has nothing to do with iPhones. You would get more help if you posted in the correct forum. -
How to use INSERT with no column name specified?
I want to insert rows into a database table using JDBC's PreparedStatement. I want to specify all values for each row, so that in plain SQL I would not have to specify column names. I wonder if I can do same thing with JDBC in the same manner (it would save a lot of network traffic as far as I can understand)? The problem is:
I need to know the data types of the columns to use correct setXXX method on my PreparedStatement. For example: ps.setString() for CHAR data and ps.setBytes() for binary data. I can use Connection.getMetadata().getColumns(..,..,tableName,'%') to get column types for all columns in my table as a ResultSet. However but I am not sure if I get them in the right order, i.e. in the order in which the columns have been defined for the table in CREATE TABLE.
So it seems I have a tough choice: to get type information in order externally or to specify (and probably transfer via network) column names in each INSERT statement. :-(
Do I have a better choice? Any ideas will be highly appreciated.....if I get them in the right order, ....Only reason for that is if you are using a meta-data type solution. If you are then there is no solution. After all customer name and address are both just text. How could you tell which is first even if you had a way to handle the types?
But if your inserts are fixed then try using varchars (single ticked entries.) This depends on the database/driver. If is supported then you will have to use SimpleDateFormat to format dates/times in the correct format for the database or use a prepared statement with bind variables. -
Trouble using cfincludes with multi-folder structure
We are rebuilding our site using <cfinclude> to pull in
standard headers and footers for each page. The headers and footers
each have many links in them. How can we deal with the fact that
the pages calling the cfincludes are not all at the same level in
the folder structure? How can we create one include file for the
header and one include file for the footer that can each be used
throughout the site regardless of the level in which the calling
page is located? Thank you.
Cheers!
JamesHow can we create one include file for the header and one
include file for the footer that can each be used throughout the
site regardless of the level in which the calling page is
located?
Create the one header.cfm and the one footer.cfm. Include
them in Application.cfm/OnRequestEnd.cfm or in Application.cfc. -
hi,
i've got a problem since i use my new notebook (windows 8.1, 64 bit) for ftp sessions. i am not able to edit, up- or download files with umlauts (e.g. "ü, "ä") in file name. i tried 3 ftp-clients (winscp, filezilla, fireftp). in each of them
i checked the option to use the encoding utf8, but it doesn't work. i also tried everything after changing the ftp mode from passive into active in internet explorer. same result. maybe it's important to say, that i firestly made an update from windows 8 to
8.1 before i used the notebook. does anyone have a solution?It seems that this is designed by default.
The Windows built-in FTP service doesn't support utf8. -
Trouble using exact_fit with Gaia and as3
I'm building a flash site (with Flash CS4 and AS3) inside of the Gaia framework.
I want to let my visitors toggle between Exact_Fit and No_scale, and I've attached the following code to be triggered by the toggle button.
function toggleExactFit(event:MouseEvent):void
trace ("Here in toggleExactFit to change StageScaleMode");
if (stage.scaleMode == StageScaleMode.NO_SCALE)
stage.scaleMode = StageScaleMode.EXACT_FIT;
this.stage.align=StageAlign.TOP_LEFT;
else
stage.scaleMode = StageScaleMode.NO_SCALE;
// stage.align=StageAlign.TOP_RIGHT;
trace ("Here in toggleExactFit - stage.scaleMode now = " + stage.scaleMode);
Here are my import statements:
import flash.display.*;
import flash.events.*;
import com.greensock.TweenMax;
// Imports used by Global Navigation
import net.kaegi.navigation.NavigationManager2;
import net.kaegi.navigation.NavigationButton2;
import net.kaegi.events.NavigationEvent;
import flash.text.StyleSheet;
import flash.text.TextField;
import com.greensock.easing.*;
import gs.*;
import flash.media.*;
import flash.text.*;
import flash.display.StageDisplayState;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.events.MouseEvent;
import flash.ui.*;
//import fl.video.MetadataEvent; - ONLY with flv playback component maybe
import flash.media.SoundMixer;
This partially works. When the toggle button is clicked, the site does stretch out to try to fill the whole screen, but everything is shifted down by about a hundred pixels and to the right by a couple hundred, so I can't see the right side or lower part of my website. I have my stage set to 960 x 620 pixels, and I checked through my different FLAs to make sure content wasn't spilling past that boundary.
I was trying to get help on the Gaia forums, but one of theri moderators moved the post, saying this was an actionscript question, not a Gaia issue.
So, before going back to the Gaia forums, I want to make sure I have my as3 right and haven't overlloked anythying.
Any suggestions as to what I might have messed up or how to fix it?Thanks. I ran the very test you suggested last night in a standalone fla and the code worked fine, and I sent a note to the moderator this morning (who'd originally pulled my thread as 'non-Gaia related'). The moderator steered me in a new direction (away from exact_fit and toward an onResize function included in Gaia) so trying to get that worked out right now.
I left my post here because I often get a more nuanced understanding of things after asking questions in the Adobe forums and I don't have much experience with exact_fit, noscale and best practices for resizing and scaling content in accord with browser changes.
Thanks for your help. -
Trouble using Oracle with WLCS
Hi,
I am trying to use Oracle 8.1.7 with WLCS 3.5 on Linux.
I am getting the error:
java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError
with the message 'no weblogicoci37 in java.library.path'.
Any help?
Thanks,
- Sougataif you still want to use the OCI driver, make sure the library in your error
message is in the LD_LIBRARY_PATH,
otherwise, switch to the thin driver from Oracle and it will work without
any libraries
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"Sougata Mukherjea" <[email protected]> wrote in message
news:3baa34b8$[email protected]..
>
Hi,
I am trying to use Oracle 8.1.7 with WLCS 3.5 on Linux.
I am getting the error:
java.sql.SQLException: System.loadLibrary threwjava.lang.UnsatisfiedLinkError
with the message 'no weblogicoci37 in java.library.path'.
Any help?
Thanks,
- Sougata -
I have a new computer, now I am having trouble using iTunes with my iPhone.
So my old PC died, now I have a MacBook Pro. I downloaded the latest iTunes to it and when I connect my iPhone to it, it does recognize my phone. However I purchased and app and I cannot get that app to sync to my phone. Also is there a way to get the apps currently on my phone to sync with my new itunes library. I would appreciate any help, Thanks!
You need to Authorise your New Mac...
Open iTunes
From the Store menu, choose Authorize This Computer. (In earlier versions of iTunes, access this option from the Advanced menu).
When prompted, enter your Apple ID and password, then click Authorize.
From Here
About authorization and deauthorization
See Here for...
Transfer Purchases = iTunes > File > Transfer Purchases
http://support.apple.com/kb/HT1848
Download Past Purchases
http://support.apple.com/kb/HT2519
Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...
All None Purchased music needs to be Copied from your Old Computer or its Backup to your New Mac... -
Trouble using WRE54G with WAG54G
Hi,
I've just purchased a WRE54G extender to use with my WAG54G, but I can't get
it to work. Do I need a firmware upgrade for my WAG54G?
Current WAG54G firmware is 1.00.19, Nov 30 2004.hi , can you specify the exact version of the WRE ....the config of version 1 are very much different from versions 2&3.....will require the exact version if i am to give you proper guidelines
this could not be a WAG issue at all...we will have to check and see . -
Trouble using contacts with mail
Does anyone know how to select multiple contacts to address a message in Apple Mail? I understand how to use the "+" sign to bring up contacts, but I can only select one email address and then the contact window closes. Very frustrating trying to select multiple email addresses. . .
Add the Address icon to the toolbar of the new message window.
Open new message window
Customise the toolbar
Drag the Address icon to the toolbar (an any other items you see that you want)
Done
Now click on the Address icon in the toolbar
Select the multiple receipents by holding the Command button
Click on To: or Cc: or Bcc: and all those receipients are added to the email fields.
A -
Trouble using handwriting with the writing pad.
When I try to use the handwriting recognizing the letters just fades without turning into words. Clicking on the screen keyboard using the pen works perfectly so the pen is working.
Any clues?
The update tells me that all drivers are the latest available...
The machine is a Touchsmart tm2Bump!
Problem still there! -
Trouble using facetime on another device with same apple id
Hi
I am having trouble using facetime with my wife. I have an iPad 2 and she has an IPhone 4S. When we try to facetime, we are able to connect for a few seconds and then it drops off. We are then unable to reconnect. We both have the same apple Id and e-mail address although I am trying to contact her via her mobile number. Any suggestions would be grateful received.Get an email address (free gmail.com) to use on the iPad.
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/
Cheers, Tom -
Trouble using Safari on start-up with pop-up error
Hi,
I'm having trouble using Safari. Every time I open up the application, a small screen popped up saying "Error- Failed to load the FastBrowserSearchPlugin plugin.* -[BrowserWindowController currentWebView]: unrecognized selector sent to instance 0x7aa570". What can I do to get rid of this issue. I am assuming it has something to do with the Fast Browser Search engine located on the top right of the safari app. Help me please! Any help will be appreciated. Thank you.HI and welcome to Apple Discussions...
You need to uninstall that plugin.
Go here for instructions on how to remove it.
http://help.fastbrowsersearch.com/
I think you'll find it in: ~/Library/Internet Plugin-ins
~ (Tilde) represents your Home folder.
Carolyn -
HUGE Troubles with xServe RAID formatted 10.4 and using it with SLS 10.6
Hi All,
We met today a huge trouble using an Apple xServe RAID (formatted HFS+ with a Mac OS 10.4 Server PowerPC G5).
This RAID has been plugged with a new xServe Intel Xeon (Model xServe 3.1), MacOS X 10.6.2, Apple FiberChannel card 4 GB, the link is at 2 GB.
There is also an Infortrend RAID FiberChannel 4 GB Fiber to SATA RAID attached to this new Intel Xeon server : this RAID drive mounts correctly, no troubles.
BUT the "old" xServe RAID is not able to mount at all while plugged with this new Intel Xeon, DiskUtility claims the volume needs repair !!! We try a repair = failed !!!
The xServe RAID has been formated under 10.4.6, HFS+ Journaled.
The Infortrend has been formated under 10.6.2, HFS+
Does anyone met a such case ??? We tried using SFP to SFP Copper cable or Optical Fiber + SFP/LC Transceiver = same results
Many thanks a lot for your opinion !!!
Regards.What if you connect your "old" xServe RAID to a non SLS server if you have one available? Preferably one running 10.4.x server to match your HFS format. If the data on the old RAID is so critical that you can't afford to lose it, you could always pickup a used PPC w/ a fibre channel card and install 10.4 server on it just so you can transfer the data. Curious to see what you end up doing.
Maybe you are looking for
-
Manual duplex printing doesn't work for LaserJet 100 color MFP M175a
Hi ! OS Windows 8.1. Printer LaserJet 100 color MFP M175a. Driver version 61.108.8.10073 date 2011 Apr 13th 1. After switching on checkbox "Print on Both Sides (Manually)" on "Finishing" tab of Print Properties Dialog and start printing, dialog with
-
Calling specific put/get commands from the communication channel
Hello, I need to execute a specific command to place or read the file from the bank file server. The command for placing the file is something like this - put localfilename %localfilename%SECUPGPENA%GPEXRIP%%B I am trying to use the following c
-
hi For payment advise , i have done configurtion in BTE to send mail to vendor. When i chkd the mail , there is no attachment found. Is it necessary to apply note 1033893 . If nt necessary what may be problem? Is there any changes to be done in FM
-
Register Acrobat Pro 8 for Mac
I've just installed Acrobat Professional 8 for Macintosh. I cannot purchase a newer version. The install went fine, but I cannot register the copy I have because Adobe has closed down the server that handled that. How do I register the copy I have? T
-
Questions concerning waveform display
Hi folks, I am in trouble again. I try to modify one example to achieve my own goal. But there are some questions I am confused. I want to display a voltage signal with 0.5 V offset and 1 V amplitude from multimeter.In the labview VIs, I have to choo