How can I escape these apostrophes?
SQL> create table emp_dtl
2 (empid number,
3 empdesc varchar2(500)
4 );
Table created.
insert into emp_dtl values (99,'Quick learner');
When I try to do the next update, I get the following error.SQL> insert into emp_dtl values (99,'Quick learner');
1 row created.
SQL> commit;
Commit complete.
SQL> update emp_dtl set empdesc = 'This employe has got 'Tremondous' and 'Admirable' potential'
2 where emp_id=99
3 /
update emp_dtl set empdesc = 'This employe has got 'Tremondous' and 'Admirable' potential'
*
ERROR at line 1:
ORA-00933: SQL command not properly ended
How do I escape the single massive and Admirable quote (do understand that these single quotes are literals in oracle)
You can escape quotes in a string by using double quotes (2 apostrophes):
update emp_dtl
set empdesc = 'This employe has got ''Tremondous'' and ''Admirable'' potential'
where emp_id=99;
Tags: Database
Similar Questions
-
How can I escape commas inside the function listQualify?
I have
am a newbie in coldfusion. I need help. My database has records of names of companies as: abc, Inc. For now I'm using this query:
SELECT DISTINCT COMPANY FROM ComapanyTable WHERE (Company IN (#ListQualify(form.cCompanyList2, "'", ",")#))
This problem is that it separates CBA, Inc..
SELECT DISTINCT Company FROM CompanyTableWHERE (Company IN ('abc',' Inc.','xyz','Inc.'))
I need to get the list, as it is, i.e. as: "abc, Inc.", "xyz, Inc." so that I can later insert these values into a new table.
Insert the code:
<cfquery name="insertPair" datasource="#DSN#" dbtype="ODBC"> INSERT INTO tblChildCompanyToParent (Parent_Account_ID, Child_Account_ID) SELECT DISTINCT <cfqueryparam value = "#form.pCompanyList#" CFSQLType = "CF_SQL_VARCHAR">, Company FROM CompanyTable WHERE Company IN (<cfqueryparam value="#ValueList(insertSelect.Company,';' )#" CFSQLType = "CF_SQL_VARCHAR" list="true" separator=";">) </cfquery>
Code of the selection list
<select multiple name="cCompanyList2" id="cCompanyList2" class="selectCCompany" data-attribute="selCCompany" size="10"> <cfloop query="childCompanyList"> <option value="#childCompanyList.Child_Account_ID#">#childCompanyList.Company#</option> </cfloop> </select>
Y at - it anyway to solve this problem.
Thank you for your help.
I managed to fix it.
I posted the solution to StackOverflow
SQL - how can I escape commas inside the function listQualify? -Stack overflow
Thank you once again!
-
I have 50 GB of iCloud and my computer is full because of photo storage problems. How can I get these pictures in my icloud? I checked all my settings. Everything is as it should be. I feel as if I had downloaded originals or something. I don't know how to understand it. I Googled, I tried to get on my computer. Emptied my Recycle Bin and my download folder. I know I must be missing something.
We need to switch to "Optimize the storage of Mac", see it - http://www.imore.com/how-save-space-optimized-storage-and-icloud-photo-library
-
I have a large collection of big slideshows in iPhoto, created over the years with captions from the titles of the photos. How can I keep these slide shows subtitled in Photos?
You can't keep slideshows as captioned photos. Slide shows get migrated in the form of albums for the Group of photos is maintained. But Photos don't have the ability to add descriptions to the slide show so that they would have to be manually added to each slide automatically.
However, a possible solution would be to export every slide show in iPhoto as a Quicktime movie file. Which will keep the titles and descriptions on each slide. The resulting QT files can be imported into the iPhoto library before migration or photo library after.
-
When sharing my project there are some clips that show a red screen with a camera saying error. How can I solve these clips if I can share the project correctly?
This happens usually when the import process was not completed. If you have the original camera card - or a copy of the computer of the map - you can probably use the re-import command (on the file menu) to fix things. In addition, it is possible that the original media is imported, but this transcoding was not. If you have chosen to optimise upon import, try to select clips in the browser and transcoding to optimized.
Russ
-
Hello
I FOUND ONLINE THAT THERE IS A WAY YOU CAN RESTORE YOUR DELETED WHATSAPP CONVERSATIONS IF THEY WERE SUPPORTED ON ICLOUD, I HAVE ALWAYS SUPPORTED MY CONVERSATIONS AND ALL RECENTLY, I DELETED A FEW CATS BY MISTAKE. I REALLY NEED THESE BACK CONVERSATIONS BUT I DON T KNOW HOW. HOW CAN I SEE THESE CATS TO ICLOUD?
Thank you!!
< re-titled by host >
On Whatsapp website:
How can I restore my messages?
-
Is it possible to plug a USB to my new iPad Pro, to transfer PDF files and some Jpeg files from the USB key with an adapter of lightning? If there is NO adapter, how can I get these files on the USB key and my iPad pro? I need these PDF files transferred my I touch pro. Any suggestions? Please
Thank you
Mike Tingey
The iPad does not support USB keys. There are some wireless flash drives that can be used, but not the classical records. I suggest you transfer files to a computer and their synchronization then back to the iPad via iTunes.
-
laptop snowleopard 10.6.8 tried to install applications of snowleopard 10.6 provided with my imac up endlessly with the error.
How can I get these apps on the laptop
What applications and what is the error message?
-
My wife has created a book of the best photos of the year project. How can I copy these photos in a standard album and the book so I can use this set in the future? All the commands I want to use are grayed.
Using Photos of Apple.
-
How can I move these indicator and the control to another page?
How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!
Or I want to hide them Kontrol page, how can I do
Thank you
Hi q8.
move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container
Hide: Terminal controls (!) right click, select "hide"...
-
Win Update has 35 'language' listed on my update package. How can I get these updates ON my machine. I NEVER want to add to my computer. I want this great list of languages removed from the update list. How to remove the.
Hello
If they are not installed then right click on them and HIDE
If they are installed - Control Panel - Windows Updates - down left - installed updated - uninstall
I hope this helps.
Rob - bicycle - Mark Twain said it is good.
-
combination unwanted contacts
I sent an email from my husbands computer after signing with my info. Direct mail has now combined its contacts with mine and also its calendar. How can I get these deleted without having to individually?The contacts and calendar are associated with the Live ID used to sign in with. When you view your Inbox, press Ctrl-Shift-O for Options. On the connection tab, click on stop signing in. Now, check the contacts and calendar.
Noel
-
How can I disable these horribly annoying windows that pop up when I leave my mouse at rest quietly on a file name?
Try this:
Open Explorer
Click on "organize".
Click on "folder and search options.
Click [view] tab
Scroll the list and uncheck "show pop-up description for folder and desktop icons.
Click [OK]
I hope that's enough what you want.
-
How can I move these gbs of my main C: drive?
I noticed that I am running out of space in my C: drive and when I went to disk management, it says I have 821 GB of unallocated space. I was really low on space for some time and recently I noticed this. How can I move these gbs of my main C: drive. I am on Windows 7 and I have a hard drive 1000 GB and a C and D drives. Thank you.
Original title: Memory Allocation
Right click on the unallocated space and mark it as active, then you should be able to expand drive C: in there.
-
Projects of direct burning on Blu Ray?
I use Windows Live DVD Maker to create DVD movies to play on regular DVD players. But how can I burn these HD movies created in MS Live Movie Maker on Blu Ray?I think that you need a more powerful software. A Google search for:
"Blu - Ray Authoring Software" could be a place to start.
Maybe you are looking for
-
I have an English Windows system with English as the language of the system. All of my software, including Firefox are in English. However, I have the settings the Russian value default system locale. This has no effect on the UI program, but in Fire
-
Having an intermittent problem (90% of the time) by creating and answering emails in Hotmail. We read emails OK and trying to write or reply to an email all other aspects of the page are very good (menus, to:, CC:, subject of boxes etc.) except for t
-
Time and date does not not on the lenovo yoga 2 pro
Lately the time and date on my Lenovo yoga 2 pro are always off by one day and one hour. Even when I change back to normal date and time manually, they return to the incorrect date and time. How can I fix?
-
Update KB954430 repeats continuously
I get updates for the same KB954430 over and over again! Thank you!
-
allusion in the spider solitaire - can be disabled
When I try to move cards when playing the lonely spider it now make me click tip to move cards - how to turn off this option