Dynamic SQL question. What are these apostrophes for?

Here is a solution provided by Boneist in the two questions relating to a so-called simple dynamic SQL thread
declare
v_rs date;

begin
for i in (select table_name from user_tables)
     loop
     execute immediate 'select last_analyzed from user_tables where table_name = ''' || i.table_name||''''  into v_rs;
     dbms_output.put_line(i.table_name ||'----'||v_rs);
end loop;
end;
When a tablename is extracted, it should be in single quotes as "DEPT". My question is about the quotes surrounding i.table_name (three quotes on the left) and 4 quotes on the right of the concatenation
''' || i.table_name||''''
First quote on the left is the final quote from SELECT (' select last_analyzed)

Second quote from left to right - I think this is the quote from beginning to the name of the table ("DEPT)

Quote from third starting on the left -?



I have not understant what 4 quotes on the right of the concatenation of c. I know one of them is the quotation from the end (right) for the name of the table (like DEPT')

JOE_humble wrote:
When a tablename is extracted, it should be in single quotes as "DEPT". My question is about the quotes surrounding i.table_name (three quotes on the left) and 4 quotes on the right of the concatenation

Actually 4 quotes on the left quotation marks and 4 right...

execute immediate 'select last_analyzed from user_tables where table_name = ''' || i.table_name||''''  into v_rs;
                  ^                                                         ^^^                  ^^^^
                  |                                                         |||                  ||||
                   \________________________________________________________///                  \||/
                                              |                                                   \|
                                            4 quotes                                            4 quotes

Maybe better if you look at it like this...

Suppose we use a character # to indicate the beginning and the end of our strings...

execute immediate #select last_analyzed from user_tables where table_name = ''# || i.table_name||#''#  into v_rs;

Now, you can see that we have two strings concatenated with the variable string representing the table name concatenated together.

Within each of these channels, we have two single quotes. When the parser crosses the two single quotes like this, in the string, which converts a quotation mark in the resulting string, rather than taking this means the end of the string itself.

Tags: Database

Similar Questions

  • What are these files for ACCFinderBundleLoader_64 and ACCFinderBundleLoader_32? They appear in my dashboard!

    What are these files for ACCFinderBundleLoader_64 and ACCFinderBundleLoader_32? They appear in my dashboard!

    I think to delete because they bother me when they have a place in the Launchpad among my applications.

    Hi all!

    I just talk to Adobe about this and they have me remove this item.

    To do this, you must go to the finder, search ACCFinderBundleLoader_64, and then drag it to the trash.

    Then delete the trash.

    It worked for me.

  • Task Scheduler... What are these tasks and that they planned?

    Initially, MSE does scan automatically as I had planned that he... .and then there is two days, he stopped. I have switched between the options [run while you are logged in, but not using it]... and makes no diff.

    Then... I looked around and stumbled upon Task Scheduler (that I used to twist a lot during my years XP) and was stunned to see 15 tasks scheduled to run on different times and different triggers... indefinitely. I don't know any of them, and I did not had everything, or the other. I noticed that I slowed down when he was running. Then I disabled all.

    48 hours later, my PC doesn't seem different (I expect event catastrophic/s)... MSE is still running is not on calendar (which is quite ok with me, because I decided that I would really rather run it when I want).

    Question: What are these tasks and why they operate indefinitely?... .and that at the request of their? And why disabling does not seem to matter? MSE is responsible for any of them?

    BTW, registration of WMC would prevent Autostart MSE? (Because on the two failed retirements, WMC has arrived to save)

    Hi Coolnewyorker,

    Your question on "that them regular '-the answer is Microsoft.

    Scheduled tasks, include the restoration of the system, Defragmenter to Windows, Windows troubleshooting, Windows Customer Experience. You will also find tasks to check the health of your PC. It's to name a few.

    With regard to disabling them does not make any difference, you might find that not much, if anything, is actually scheduled for work when you really are on your PC. In many cases, most schedules run at about 02:00 or, in the case of everything Microsoft has planned on my machine, it does not at all simply because my system is stopped when the majority of demand is demand - or at least it used to be. Systematically, I went through them and changed the time when I was online so that information to Microsoft are downloaded - for example files that are created when the PC crashes etc.

    About MSE, as most of the applications that run on a schedule, there is a strong dependence on the PC being idle for many minutes before the start of the schedule. If you are running another program, such as WMC in record, the system is not idle, it's registration; so, Yes, WMC record could affect the operation of MSE. John Barnett MVP: Windows XP Expert associated with: Windows Desktop Experience: Web: http://www.winuser.co.uk ; Web: http://xphelpandsupport.mvps.org ; Web: http://vistasupport.mvps.org ;

  • In preferences-saved passwords for Chrome://weave (Services of Mozilla password) and Mozilla Services Encriptación Passphrase) what are these and are they necessary?

    In preferences-saved passwords for Chrome://weave (Services of Mozilla password) and Mozilla Services Encriptación Passphrase) what are these and are they necessary?

    If you define a sync and create a new account to sync or connect to an existing synchronization account then Firefox stores the credentials (name, password and key Sync) in password manager to allow to connect to this account when you start Firefox.
    If you remove these entries in password manager then sync will stop working and you will have to set up the synchronization again.

  • There are a lot of files like KB950762.log in c: Windows. What are these for, and it is safe to get rid of them?

    n c: Windows there are a lot of files like KB950762.log. What are these for, and it is safe to get rid of them?

    These are log files from your windows updates. They could be used to help solve problems of update, but if you experience any problems, they can be removed safely.

  • What are these core.* files * for?

    In our OBIEE env. I see a lot of files named core.24590, core.24597, core.13896 etc... I have about 15 files like that and they take more disk space. What are these files and how do I manage them? They are in the folder $MW_HOME/instances/instance1.  (this is 11.1.1.7.1.4 on OEL 6 OBIEE)

    Thank you

    "read through the Rittman Mead Consulting " Blog Archive "Oh No! My BI server has Core dumped! There may be several reasons for this as server crashed, killing process, hit threads in weblogic, images etc. from memory. You can restrict it completely by changing the ulimit-c 0 so in this way it does not generate unexpected dumps core or you can change to the root and provide a custom for these unexpected dumps core outside of OBIEE MW reception location. You can also validate these unannounced dumps using gbp utility core and share them with Oracle's Support team to investigate the matter.

  • What are the reasons for blocking a thread?

    There is a question in the PL/SQL forum, that as is often the case, is not to the point. I asked for more information, and the OP provided. Now, I know what the OP really intends to ask, and I can answer.

    Or at least I could answer, except that the thread is now locked: ' this thread is locked - replies are not allowed. " According to the FAQ, this means that a moderator has locked the question. But why? Why block this issue and not the other threads of the same buggy? If the lock is due to an offence on the part of the OP, why not just delete?

    In short, why hang on to a question without a question? Is it zap and slightly reduce noise in the forum, or unblock and allow for a response.

    At the very least, a policy of blocking issues without apparent reason or explanation undermines the role of contributors.

    Cheers, APC

    P.S. [url https://forums.oracle.com/forums/message.jspa?messageID=10025314#10025314] here's the thread in question. OkF

    ---------

    Follow-up: I noticed that the user has at least another locked thread. So maybe there's something in their behavior that deserves imprisonment? But they have other threads that are still open. So, my main point remains valid: what are the reasons for blocking a thread? Why not just ban the userf and or delete questions?

    Published by: APC on December 11, 2011 16:48

    Gasparotto N wrote:
    I see, but as Andrew said, there is no evidence in the taken only a single thread without going through the history of the user all the.

    Nicolas.

    Agreed. If I block a thread, then I often put a message to say I'm locking it and the reason why and possibly a link to other threads of the same question if it's because of the duplication of the op.
    It is not that often that I have lock son well.

  • My ipad 16Gig air 2 is short-term memory or space. iTunes indicates that on 6gig space on my device is occupied by "others". What are these other?

    My ipad 16Gig air 2 is short-term memory or space. iTunes indicates that on 6gig space on my device is occupied by "others". What are these other?

    Another seems to be a combination of things left behind by failed sync events, private data app which is not recorded elsewhere, and who knows what else. It tends to grow over time. The following steps should decrease. They assume that all the content you want on the device in your lending library for the restoration. If not see recover your iTunes from your iPod or an iOS device first. I would also recommend you copy everything off of the camera, if you have not already.

    1. Backup device.
    2. Restoration as a new device.
    3. Restore the backup that you made earlier.

    Use a backup encrypted if you want to keep passwords, wi - fi settings, history and health web data as appropriate.

    TT2

  • So, what are these two arrows that appear on some files, such as page files in the Finder?

    So, what are these two arrows that appear on some files, such as page files in the Finder?  I kinda afraid to hit one of them for fear that they're going to mess with the file.

    Could you post a screen so that we know what you're talking about!

  • What are these files (with long names) in my C drive? Example: {463111B4-B045-4CE3-93D2-840FAEF5ABF1}

    These files are approximately 2 - 2.5Kbytes. Their names are formatted like this example: {463111B4-B045-4CE3-93D2-840FAEF5ABF1}.  I does not have these files in my C drive. According to me, they come from the process of Windows Update and install the updates.

    What are these files?
    What is the nature of these files?
    Should I delete them from my computer?
    Thanks in advance for your help, thoughts and ideas.
    What are these files?
    What is the nature of these files?
     

    Remains of updates.

    UTC/GMT is 22:29 Thursday, October 18, 2012

  • What are the specifications for an inspiron 3000 11 touchscreen?

    Myself and others have on a mission to find a stylus that works with this 2 in 1 and so far not had much luck.  The squishy tip pen that I got for my phone does not work.  One of these somewhat new metal stylus with the small round disc on the end works fine on my phone, but not on the inspiron with or without a screen protector.  I had an active stylus for motorola with a battery that someone suggested, it does what intermiittingly but I guess the fact that it works at all should give me some hope.  What are the specifications for the touchscreen on the 3135?  I read that a thick cover as glass can affect if the pen works or not as well as screen protection.  I found a couple of stylus that claim to have the adjustable power so they should work with coatings of glass and screen protection.  Pen digital universal Adrien, adjustable overdrive and navitech are all meant to be active stylus which have two power settings.  I asked in the faq, but nobody can say if it works on the inspiron and the manufacturer says they have not tested either.  While I hate to spend 30 dollars on something like that without knowing that it will work 100%, I ordered one of the navitech off amazon because I can go back if I want to.  I poured everything I can find on this machine, but nowhere does anyone give any details about the touch screen.  I know that this is not intended to be a stamp artist drawing or anything other than the simple ability to interact with small buttons on the screen or the digital signature casual or simple drawing hand is the main reasons I want a small pen tip.  Don't get me wrong, I really enjoy this machine, but I don't understand why material for touch screen specifications seem to be such a mystery tech dark and deep.  This is perhaps because Dell has more than one supplier... I guess it could be both one reason than others.  Even if we can talk only about basic general information is probably more than I've found so far.

    Your S3 screen with a digitizer.  Your laptop screen does not work.

    Essentially, a laptop a scanning screen is also called "tablet" and - for systems or more 12 "inch screen size, will sell for a minimum of about $800-900.  About lowest price will be a simple touchscreen - not a digitizer.

  • Can someone tell me what are these two programs and what they're doing, Microsoft Visual C++ Redistributable, and AMD USB Audio Driver filter?

    Can someone tell me what are these two programs and what they do?

    1 Microsoft Visual C ++ 2005 Redistributable 2. AMD USB Driver Audio Filter (Advanced MICRO Devices Inc.

    .

    Hello

    Here's the explanation for details, requested clarification on the following programs.
     
    1 Microsoft Visual C++ 2005 Redistributable
     
    Most common programs are written in a program called C and C++, which is widely used by developers and they are a source of standard libraries what software use to support and to perform their designated functions.

    When software is installed in the computer, he needs help / support of software of Visual C++, in order to avoid a software to download the copy of its source or support a coding Windows has integrated the software and download and storage space a s it updated to make it available to the software and to avoid unnecessary.
    It is strongly recommended that you keep your C++ updating so that no Microsoft software or third party to download an individual component each time.
     
     
    2. filter driver Audio USB AMD (Advanced MICRO Devices Inc.
     
    It is possible that you are using a product from AMD (card mother or specific device) and this particular software can be a pilot allowing filters update USB ensure operation smooth and full and for a device and its properties.
     
    Please let us know if you are facing problems with the software above, to receive the appropriate troubleshooting steps.
  • What are the requirement for the installation of TMS on VMware and a more stable version of the same thing

    Hi all

    What are the requirement for the installation of TMS on VMware.

    CPU, Windows 2008R2 and VMware platform. Please let me know the role of these servers

    You can see here the fact sheet VM:

    Virtualization Cisco TelePresence Management Suite

    More specific information such as the OS and versions can be found in the installation guides:

    TMS installation guides

  • When I'm accommodating the toolbar of the new option to arrange the icons on the toolbar toolbar change several tools come with the words "wrong tool" and have no icon associated with them. What are these missing tools 'bad '?

    When I'm accommodating the toolbar of the new option to arrange the icons on the toolbar toolbar change several tools come with the words "wrong tool" and have no icon associated with them. What are these missing tools 'bad '?

    I see you have fixed this now, but I was about to tell you that you could have accommodated in the 'Bad' by its shortcut "I" tool.

    To save a custom toolbar, get everything the way you want and click on the button space work, click new workspace

    Type a name for the workspace, and check all three options.

    If I have to use a single screen, I use a variant of the Essentials workspace with minor panels collapsed and dock for main panels.  I call this Essentials 2

    It also seems to me that with all these options, it's stupid not to take full advantage of them, so I separate my most used instruments for their own group and double column toolbar to adjust the screen.  I tried to drop in the groups for the most used tool near the document image (right). I love it, but it take some time remembering the new positions.

  • Photo, what are the criteria for images selected from the collections of photos?

    With Photo on my Mac when I'm in the view "of the years', I see all my photos. When I switch to 'Moments' I see all the photos, especially older. When I go to "collections", then I self pictures? What are the criteria for images selected in 'collections' of photos? Thank you

    You should see all the photos in the Moments, the years, Collections, unless you have the "Summarize" option enabled in Photos > Preferences > General.  Then some pictures will be omitted, but the rules are not documented.

Maybe you are looking for

  • Stupid problem... can't access app store

    Hi, because of a failure of ssd, I installed on an old hdd 250 GB mountain lion. This facility is very good, and I want to upgrade to the el capitan. I click the app store icon and click on hard find sign in button, where I'm presented with a newspap

  • I can't import the email from Outlook 2003.

    Import (as an option in the Tools menu) crashes and generates an error notification. I have several folders in the Inbox of my Outlook and old messages archived (in another pst file). What is the reason for the failure?

  • Very slow Firefox on Windows 7

    I was a Mac with Firefox user and has been exceptionally good. I moved to a Windows 7 machine and loaded Firefox to continue my happiness with Firefox. I made Firefox my default. Unfortunately, I find the current Firefox for Windows 7 to create probl

  • Satellite L30 - 10W: Double OS Vista and XP

    Hello. I have the Satellite L30 - 10W with Windows Vista Home Basic. How to install another operating system Windows XP Home Edition?

  • Cannot install Vista SP1: Error Code 2

    Each attempt installation of Vista SP1 fails: Error Code 2.  I tried everything that seems relevant on help and Support. Doug K