Difference between " " and ' ' in oracle

Hi
What is the difference between " " and ' ' in oracle

Generally, single quotes ' are used as string delimiters. Double quotes are NOT string delimters in SQL, but are used to preserve the precise representation of what's enclosed - for instance, "abc" would be recognized as lowercase in situations where SQL would automatically translate them into upper case. Thus, something like
SQL> select dummy as "dummy"
  2    from dual;
d
Xmeans to select the dummy column but preserve the name in lower case where normally the 'd' in the column name (cut off) would be 'D'
Using empty strings to represtent nulls has already been discussed on this thread. Remember that spaces are NOT nulls. I personally find the replace-null-with-space method a bit clunky, but a lot of mainframe-to-oracle conversions use it.

Similar Messages

  • What are the differences between the following Oracle database views?

    What are the differences between the following Oracle database views(or function)? Can they be instead of each other? Can all of them be used to pull out the execution plan from the library cache?
    V$SQL_PLAN
    DBA_HIST_SQL_PLAN
    dbms_xplan.display_cursor function

    junez wrote:
    What are the differences between the following Oracle database views(or function)? Can they be instead of each other? Can all of them be used to pull out the execution plan from the library cache?
    V$SQL_PLAN
    DBA_HIST_SQL_PLAN
    dbms_xplan.display_cursor functionV$SQL_PLAN-this is dynamic perfomance view which contain execution plan information for each child cursor loaded in the library cache.
    DBA_HIST_SQL_PLAN- data dictionary view also contain execution plan information for each child cursor bun in workload repository.Actually this view captures information from V$SQL_PLAN and is used with the DBA_HIST_SQLSTAT .
    dbms_xplan.display_cursor - function displays explain plan of any cursor loaded in the cursor cache. See more information below links:
    http://youngcow.net/doc/oracle10g/server.102/b14237/dynviews_2120.htm
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10755/statviews_2154.htm
    http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10802/d_xplan.htm#998179

  • Difference between and != operators

    Hi All,
    My question may be very basic to you all
    Please let me know the difference between <> and != operators
    Thanks in advance

    user609996 wrote:
    Sorry to all,
    the operator "<>" is not printed
    I want the difference between "<>" and "!=" operators.And as you've already been told there is no difference between the &lt;&gt; and != operators. They mean the same thing, but are just different representations of it.
    The only difference is that the Oracle forum can't display &lt;&gt; if it is just typed in normally. To show it we have to type &lt and &gt with a ";" after each.

  • Difference between & and && operater   and  difference between and

    what is difference between & and && oprater in java
    and what is difference between << and <<< operater

    i am sorry i dont know about << ,<<<< There isn't a <<< operator.
    However I presume the operator being referred to is >>>
    They are bit shifting operators.
    In fact its the [url http://java.sun.com/docs/books/tutorial/java/nutsandbolts/bitwise.html]very next page of the tutorial linked to above.
    << == left shift
    == right shift,
    == right shift (unsigned)
    Cheers,
    evnafets

  • Difference between and lock and eneque in oracle

    Please give the difference between a lock and eneque in oracle
    Naveen

    Here is what Oracle defines an Enqueue to be in the 9.2 Glossary >>
    enqueue
    Shared memory structures that serialize access to database resources. Enqueues are local to one instance if Real Application Clusters is not enabled. When you enable Real Application Clusters, enqueues can be local or global to a database. (See also: latch, lock, and resource.)
    <<
    There is also a type of enqueue associated with Advanced Queueing. Similar concept but different specialized purpose.
    Generally speaking Locks on the other hand serialize access to row data. Oracle actually records row locks in the data blocks.
    Enqueues, Locks, and Latches are perform the same basic function: serialize access but the methods are implemented differently and applied to different functional areas of the rdbms.
    HTH -- Mark D Powell --

  • What is the difference between free download oracle software and buying oracle???

    Dear all,
    I am really not understand the question. what is the difference between the free download oracle software and paid oracle software? the free download software can really do sth such as create database, develop some applications.? PLease answer, Thanks firstly!!!
    Best regards!
    zhw

    Learn Step by Step , How to become Oracle Apps DBA completely free at
    http://becomeappsdba.blogspot.com
    or
    http://teachmeoracle.com
    Please pass on this to other budding DBA's & Expand Apps DBA community, all content is free only need your feedback & content so I can put it at single place .
    Oracle Apps DBA

  • Difference between Upgrade to Oracle 11g Exam and the OCP 11g exam

    Is there a difference in the Oracle Database 11g exam and OCP 11g exam?
    Say for example, i am an OCP 10g and I took the New Features Course for 11g. Then I will upgrade to OCP 11g
    or
    I will take all the courses for 11g then take OCP (do not worry, money is not an issue in this case)
    Is there a difference between the two in terms of the examination?
    Will the exams for Upgrade to OCP11g and OCP11g the same?
    Which one is harder? or easier?
    Thanks. hope to see your feedback

    859640 wrote:
    I am sorry. But i din't quite understand the explanation.
    Correct me please if i am wrong.
    As I understand you:
    1. I am on OCP 10g
    2. I will need to take the exams (no need to get additional training) that need to be taken to be an OCP 11g which includes the following:
    - 1z0-051: Intro to SQL 11g
    - 1z0-052: Admin I 11g (if passed then OCA)
    - 1z0-053: Admin II 11g (if passed then OCP)
    Is this correct?Can I put it this way.
    I apologise if i am being explicit here but I am just being able to cover all angles.
    If a person is 10g OCP DBA (and has proof of this as a valid certificate from oracle or can see this on their certification status at certview.oracle.com .... I say this because some people with a 1z0-043 exam pass only may incorrectly claim they are a 10g DBA OCP) then the following routes from 10g DBA OCP to 11g DBA OCP are possible:
    1) By passing 1z0-050 ... the 11g DBA OCP should be granted with no further requirements other than the 10g DBA OCP
    2) By passing 1z0-052 and 1z0-053 ....... HOWEVER .....
    ..... It is possilble some 10g DBA OCP may not have passed an SQL exam in the past (1z0-051/047/-007/001) and if this is the case one of 1z0-051/1z0-047/1z0-007 will also need to be passed on this route (I would recommend 1z0-051).
    ( Essentially route (2) is valid for any DBA OCP; there is a 1z0-055 single upgrade exam for 9i DBA OCP's)
    It is recommended to find and check your existing certification under certification history (+not exam history ... that doesnt matter for this purpose+) under certview.oracle.com before starting on this route.

  • Difference between ';' and '/' in the SQL scripts

    Hi All,
    Could anyone please let me know the difference between placing ';' and '/' in the sql scripts.
    I am placing couple of insert statements in a textfile with .sql extension and running it from the sql prompt.
    Which one( ';' or '/') should be keep at the end of each statement in the script.
    SQL> SELECT SYSDATE FROM DUAL;
    SYSDATE
    12-MAY-13
    SQL> SELECT SYSDATE FROM DUAL
      2  /
    SYSDATE
    12-MAY-13Thanks,

    968217 wrote:
    My doubt is how it understands or the difference b/w the below two view statements one with ';' and another one with '/'. Sorry if i am unclear.They are identical in SQL*Plus. These characters mean "+send entered/buffered text to Oracle to parse and execute+".
    So - SQL*Plus sends "+create or replace view ev1 as select ename , sal from emp+" to the server (via a cursor execute):
    create or replace view ev1 as select ename , sal from emp
    /And again, SQL*Plus sends "+create or replace view ev1 as select ename , sal from emp+" to the server (via a cursor execute):
    create or replace view ev2 as select ename , sal from emp;These are identical statements.
    As I mentioned in the post I referred you to. Oracle also uses the ";" character in the PL/SQL language. So when you enter PL/SQL code in SQL*Plus, you do not want SQL*Plus to send each line of PL/SQL code to the server. Instead, you want it to wait till the last statement has been entered and then send the the whole block to the server to be parsed and executed,
    SQL*Plus has a basic parser itself. It uses that to figure out what you have entered, and whether a ";" you enter is an instruction from you to it, to send the text to the server - or when you enter a ";", it is part of the text for the server and that it should not react to it.
    Thus when you enter the following, SQL*Plus recognises that you are using the SQL language, and as this language does not use ";" characters, a ";" character when entered means that it needs to send the text to the server to be parsed and executed:
    SQL> select * from emp;
    // ; character instructs SQL*Plus to create and execute cursor "select * from emp"When you enter PL/SQL code, SQL*Pus recognises that and knows that ";" characters entered indicates end-of-statement for PL//SQL and that it should not act on that,
    SQL> begin
      2    null;
      3  end;
      4  /
    // SQL*Plus ignores the ";" character - and the "/" character is used to
    // instruct SQL*Plus to create and execute cursor"begin<LF>null;><LF>end;"

  • Please tell basic difference between "" and null  for String  variable.

    1.What is difference between String strRemitInfo = "" and String strRemitInfo = null?
    2. Which one is good practice while coding ?

    1.What is difference between String strRemitInfo = ""
    and String strRemitInfo = null?Emptry string and nul reference
    >
    2. Which one is good practice while coding ?Depends on what you want to do.

  • Whats the difference between and Album and a Smart Album

    OK, just upgraded.... So, whats the difference between an Album and a Smart Album?  
    Also, I like to organise my stuff, so if I create a folder for each year, and then a project within that year, why is it that the photos are always in both - and then again if I chose to create an album specific to a project, they are there again.
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    Thanks guys!

    Mrsthebraggster wrote:
    So it might look:
              Folder (2012 Equine Photography)
                   Project - Specific Events
                        Album - Big Barn Dressage May
    Does this mean the individual photo is stored 3 times and using 3 times the space?
    No. Conceptually the Master only lives lives in the single (time based) Project you import it into. Albums are just collections of pointers that point to  images in various Projects.
    "Big Barn Dressage May" could be a Project, but only if it is only one day and a limited number of image files; otherwise an Album. "2012 Equine Photography" should be an album or a Folder of Albums. "Specific Events" could be an Album or a Folder of Albums.
    A Project should not be used as a Folder.
    From an earlier post of mine:
    Folders are indeed flexible organizational tools but IMO often overused. Folders can effectively hide contents from view and therefore require users to remember how folders are nested and what is inside them. Folders were the only way to deal with single-original film, but are IMO limiting to image database thinking.
    The way I look at it conceptually:
    Aperture is a database (DB), and each image file lives in one Project.
    Albums are just collections of Pointers that point to individual image files living in one or more Projects. Since they just contain pointers, albums can be created or deleted at will without affecting image files. Very powerful. And Albums of pointers take up almost zero space, so they are fast and do not make the Library size grow.
    Keywords can be applied to every image separately or in batches. Keywords are hugely powerful and largely obviate the need for folders. Not that we should never use folders, just that we should use folders only when useful organizationally - - after first determining that using keywords and albums is not a better approach.
    As one example imagine the keyword "flowers."  Every image of a 100,000 images Library that has some flowers in it has the keyword flowers. Then say we want to put flowers in an ad, or as background for a show of some kind, or to print pix for a party, or even just to look for an image for some other reason. We can find every flower image in a 100k-image database in 2 seconds, and in another few seconds create an Album called "Flowers" that points to all of those individual images.
    Similarly all family pix can have a keyword "family" and all work pix can have a key word "work." Each individual pic may have any number of keywords. Such pic characteristics (work, family, flowers, etc.) should not be organized via folders.
    So by using keywords and albums we can have instant access to every image everywhere, very cool. And keywords and albums essentially take up no space in the database.
    Another approach is to use a folder "Family" for family pix, a folder "Flowers" for flowers pix and another folder "Work" for work pix. IMO such folders usage is a very poor approach to using an images database (probably stemming from old paper or film work practices). Note that one cannot put an image with family in a field of flowers at a work picnic in all three folders; but it is instant with keywords.
    HTH
    -Allen

  • Difference between * and ALL field values?

    Greetings to all,
    Here is an intresting question. For a particular authorization object of a role, I see that it has a field value of ALL for a specific field. Is this same as * or is there any subtle difference between the two. This is in ECC 5.0.I would greatly appreciate a discussion. Thanks.

    i have also seen the value ALL in some roles in my org...
    Object:C_PRPS_USR (PS: Model for User Field Authorization for WBS elements)
    Field:USR10_1 (User field with 10 characters)
    Value: ALL
    If ALL means value ALL then what is the significance of it in the above field?
    Pls throw some light...
    thankx
    Sachin

  • Difference between ' and " in tags

    I see some people posting code with tag library tags using ' (single quote) around attributes sometimes. Is there a functional difference between the 2 styles like in Perl, or is it like Javascript where it doesn't matter, or is this just typing mistakes?

    Yes, yes, that's like Javascript/HTML, so things aren't confused. But what is this action, cuz the taglib tags would be pulled out on the server before the browser sees it...
    Are you meaning (taglib in plain HTML):
    <form action="<bean:write name='beanname' property='propname' />">...</form>
    or are you meaning you can do this (nested taglib tags):
    <html:form action="<bean:write name='beanname' property='propname' />">...</html:form>
    ?? Cuz I've do this with no problems:
    <form action="<bean:write name="beanname" property="propname" />">...</form>

  • Differences between being an Oracle and SQL DBA?

    Sorry to post this here, but I need so insight and don't know any Oracle DBA's. As posted here before, Ive been a MSSQL DBA for about 6 years and want to broaden my skill set. One of my ideas is to learn Oracle. For the record, I do realize that my teaching myself wont open up hundreds or Oracle DBA jobs, but Im hoping to land a "mostly SQL with a little Oracle" gig somewhere. Ive successfully installed Oracle on Linux, and now need to make a decision on if to proceed or not. Any insights from people that have worked with both platforms would be especially helpful, but all thoughts are definately welcomed. So now my questions:
    1. Why are Oracle DBA's paid more than SQL DBA's? It must be something skill specific? What is it?
    2. Will this trend likely continue as newer versions of Oracle are released that are easier to manage?
    3. With that extra cash, is there typically more hours involved? I dont mind working a bit extra if needed, but I do have little ones that I'd like to watch grow up.
    4. Are there typically differences in the job responsibilities between Oracle and SQL DBA's? The changing trend these days is to include DTS/ Analysis Services/ Reporting Services all under the DBA umbrella. Do Oracle DBA's typically have the same type of stuff?
    5. If I do continue down this path, it would probably be far easier for me to learn on Windows than *nix. Is this a valid thing to do, or should I not bother? I've been told that it's still worth while, but have real reservations about needing to tell an interviewer "I've only used it on Windows".
    I realize this is all subject to personal experiences and feelings, but don't know how else to figure this stuff out without asking.
    TIA, ChrisR

    By SQL DBA, I assume you mean SQL Server DBA. SQL is 'Structure Query Language' and is not a specific product, no matter how much the Microsoft community might wish to usurp the term. <g>
    There are mauy reasons for this, including the Oracle vs Microsoft mindset that has been nurtured over the years. For many managers, 'Oracle is solid, reliable and expensive' whereas 'Microsoft SQL Server is cheap, not necessarily as reliable, but good enough'.
    Whether true or not is irrelevant, these are direct quotes from some of my customers.
    My remaining answers are based on my personal experience, and may only be valid in my area. (Yes, things are VERY regional.)
    >
    1. Why are Oracle DBA's paid more than SQL DBA's? It
    must be something skill specific? What is it? Often, an Oracle DBA is a trained DBA. SQL Server DBAs seem to be decent developers who are [or have been stuck] doing DBA work.
    I find that SQL Server DBAs who are truly capable of handling all of {backup, recovery, troubleshooting, security, development, disaster recovery, audit, locking, configuration, RAID and disk, upgrade, migration and porting (to name a few)} competently are generally paid comparable to Oracle DBAs.
    However, I also find there are extremely few true SQL Server DBAs.
    >
    2. Will this trend likely continue as newer versions
    of Oracle are released that are easier to manage?Yes.
    Although Oracle administration is easier, DBAs are now expected to handle more instances, and adminstrator across more servers, and are expected to be competent in more of the feature capabilities.
    There is NO reduction in the amount of work. The 'easier to manage' stuff simply means being more efficient.
    >
    3. With that extra cash, is there typically more
    hours involved? I dont mind working a bit extra if
    needed, but I do have little ones that I'd like to
    watch grow up.
    A blatant observation: Oracle tends to be used in more mission critical environments, and SQL Server in department support environments. Mission critical tends to be watched closer, and require 'fast aqnd competent' response. Pager duty seems to be more prevelant in Oracle positions - department server crashes can be handled by a reboot in the morning.
    4. Are there typically differences in the job
    responsibilities between Oracle and SQL DBA's? The
    changing trend these days is to include DTS/ Analysis
    Services/ Reporting Services all under the DBA
    umbrella. Do Oracle DBA's typically have the same
    type of stuff?Many SQL Server 'DBAs' I know personally are 'super developers' but not really DBAs.
    Observation: DBAs are often very 'repeatable' detail oriented, whereas developers are 'get it done' oriented. Very different mentailties, both very important.
    >
    5. If I do continue down this path, it would probably
    be far easier for me to learn on Windows than *nix.
    Is this a valid thing to do, or should I not bother?
    I've been told that it's still worth while, but have
    real reservations about needing to tell an
    interviewer "I've only used it on Windows". Oracle is quite operating system independant. Pick your poison.
    SQL Server is quite operating system dependant. Some else picks your poison.
    There is no shame in saying to an interviewer that you have a strong competence in Oracle but only experience in Windows. A good potential employer will often provide appropriate additional training to a suitable, honest, candidate.
    >
    I realize this is all subject to personal experiences
    and feelings, but don't know how else to figure this
    stuff out without asking.
    I strongly encourage you to contact locals rather than ask in these forums. Check whether there is an Oracle User Group close to you, and meet and chat with the members. Ditto for SQL Server. (You can find out by contacting respective sales reps.)
    The above is NOT a dismissal of SQL Server capabiltites or SQL Server DBAs. (Some close friends are extremely competent with SQL Server.) It is just a set of personal observations.

  • Differences between TOAD for Oracle and Oracle SQL Developer?

    Does someone know the advantages and disadvantages of using TOAD for Oracle and Oracle SQL Developer?
    I work making reports with TOAD, but in a few days I will have to use the SQL Developer (because it´s free) unless I justify the necessity of using TOAD.
    Could some that used both compare them?
    Thanks,
    Facundo.

    Hello Facundo,
    since we are rolling out new client PCs we switch from Toad to SQL Developer. Therefore I'm doing some training for the "normal" users and our developers.
    Most users simply want to have access to the data in tables and views. For those there are 2 main issues:
    - Filters get lost when exiting table while sorting is still applied. Since there is no way to apply filtering before entering the data tab this can become a great performance issue because sorting is applied to many many rows. For views it is sometimes impossible to open the data tab.
    - Exporting date values to Excel needs some know how if you want to sort by this column in Excel, because the date is formatted as "Standard" meaning that the sorting is done as for a text column: 01.01.2009 is less than 02.01.2008. Here you have to use a workaround column with a formula (=1*<datecolumn>)
    The greatest Pro is the easy sharing of connections and reports by XML files.
    Our developers like the easy debugging in SQL Developer. Though they miss the feature that the source is compiled for debug automatically as in Toad. For this we have distributed a script that compiles any PL/SQL object for debugging.
    There are only some Toads installed for DBAs and for users that need access to tables protected by policies that require authentification by OS user since this information is not passed under every circumstance.
    Regards
    Marcus

  • What is the difference between connecting to oracle thro LDAP and thro TNS

    what is the diff bet connecting to oracle through TNS,Direct and LDAP authentication

    Dear User,
    TNS -
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/glossary.htm#sthref2007
    Direct -
    Without TNS entry.
    LDAP
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14268/asowalet.htm#CHDFHBJG
    Regards,
    Taj

Maybe you are looking for

  • Problem in Installing oracle 11g in enterprise linux

    Hello all, Iam new to linux and oracle .... I had downloaded enterprise linux from oraclewebsite, My question is i was not able to install oracle 11g in enterprise linux... And when i am trying to install ./runInstaller iam getting error message (per

  • Create or crop an .swf at runtime?

    hello, if i have a .swf with some graphics created on it (dynamic shapes, text...) and it's dimensions are, say 300x300, would it be possible to have an event which would "crop" it to say 100x100 based on coordinates entered? furthermore, would it be

  • Should PFI I/O Be Set To A Default Setting Before Use?

    Hi everyone, I am using the PFI lines on my PXI DAQ Card (6229) for Counter Output frequency generation and Counter Input frequency readings.  I know these lines on power up of the PXI card are set to high impedance mode by default.  Should these lin

  • Restoring backup from disks

    I had to reset my Touchsmart 300 to factory settings.  Before the restore I backed up my files to DVD as recommended.  Now i can not retrieve the information from the DVDs.  I have gone to Back Up and Restore  - Restore my files and inserted the disk

  • WLC 7.2.x release AP support matrix

    I've got a question about the support of AP's in the latest 7.2.x code http://www.cisco.com/en/US/docs/wireless/controller/release/notes/crn7_2.html#wp868108 We have a couple of AP's that are not referenced in this matrix, does that mean that they ar