How to setup a default value when defining (prompting) for a value?

When I prompt the user in a SQL statement then I can declare a default value like in:
SELECT *
FROM all_users
WHERE username = nvl('&myvariable','SYSTEM');
But when I define a variable this does not work:
define tablename=nvl('&tablename','test123')
How can I setup a default value here?
Peter

Is there a way to define a default value DIRECTLY in SQLplus DEFINE command (and not later when the value is used in SQL statement)?no, there is not for DEFINE but you can use ACCEPT:
SQL> accept tablename prompt 'Enter value for table Name:' default EMP
Enter value for table Name:
SQL> select column_name
  2  from cols
  3  where table_name='&tablename';
OrderNumber=1234
COLUMN_NAME
EMPNO
ENAME
JOB
MGR
HIREDATE
SAL
COMM
DEPTNO
8 rows selected.Max
[My Italian Oracle blog| http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

Similar Messages

  • How to setup a default size for new divs in fluid grid layout in dreamweaver?

    Hi,
    how to setup a default size for a new divs in fluid grid layout in dreamweaver? I don't need the default size for new divs as a 100% width, I need them 13.69% as a one coulmn width only (7 coulmns fluid grids layout for desktop size 1000w).
    This problem I've faced when I intended to insert dozens of fluid grid divs in the layout.

    Sorry, I don't believe that you have had a good look at the Foundation framework. I'll now hold your hand while we go through the basics.
    Here is the specific page http://foundation.zurb.com/docs/components/grid.html
    The default values are
    Em-base : 16px
    Row width: 62.5em (62.5em x 16px = 1000px)
    Columns per row: 12
    These and other default values can be changed. The fact of the matter is that if you stipulate a section width of 2 or 3 or 12 columns, the widths will automatically be calculated for you.
    In your case, if you want 7 columns, all you need to do is change the number of columns per row and the rest is done for you.

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to setup a default direction for new divs in fluid grid layout in dreamweaver?

    Hi,
    how to setup a default direction for new divs in fluid grid layout in dreamweaver? I am an RTL interface user, I need my new divs to be inserted from right to left not Left to Right! could it be in dreamweaver?
    Thanks.

    This may get me into strife, but my experience is that you are better off finding another platform for your RWD.
    The framework that I tend to use is by Zub-Foundation http://foundation.zurb.com/.
    A commercial product that I have come to appreciate can be found here http://www.projectseven.com/products/tools/composer/index.htm. Please do not mention me if you happen to choose this product.

  • How to setup the default run page in WAR file

    Can anyone please tell me how to setup the default run page in WAR file using JDeveloper? I want the login page to be the default page of the application. Thanks!

    This is usually done in an .XML or other configuration file based on the particular web application container you are using.
    For example, in Tomcat Java Container, its the following parameter in the /conf/web.xml file:
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    You will need to look at the documentation for your server container.
    thanks

  • How to setup dialup internet connection(PPP) in Solaris for ADSL modem

    I ,m new to Solaris. How to setup dialup internet connection(PPP) in Solaris for ethernet ADSL modem? will solaris recognise the ethernet modem?? I only have windows drivers for the ethernet modem. Where to look for info on this?

    The setting you set in IE also affects Firefox. For example, if you set the following, then when Firefox makes a connection request to Windows, Windows is supposed to dial the connection:
    Windows Control Panel > Internet Options > Connections or <br>
    Internet Explorer Tools menu > Internet Options > Connections
    "Dial whenever a network connection is not present"
    Source: [[How to make Firefox automatically dial up]]

  • How to setup the Linksys router E4200 DD-WRT for WVC54GCA

    I don't know how to setup the Linksys router E4200 DD-WRT for WVC54GCA. The DD-WRT is very complcated. Please help!!!!! Also, I have used the TZO.com for the DDNS. Should I setup the DDNS for DD-WRT router??? I used the DDNS for my old model router before. Thanks.
    Solved!
    Go to Solution.

    Hi majekho, that is best be answered by support from the developers at the DD-WRT forums.
    The Search Function is your friend.... and Google too.
    How to Secure your Network
    How to Upgrade Routers Firmware
    Setting-Up a Router with DSL Internet Service
    Setting-Up a Router with Cable Internet Service
    How to Hard Reset or 30/30/30 your Router

  • How to setup the portal with the uniform style for SRM + Esourcing?

    how to setup the portal with the uniform style for SRM + Esourcing? We will setup SRM 7 + esoourcing + portal, but as we know esourcing screen style is not same with SRM, so how to uniform the style between this 2 diffirent software?  any body have idea?

    Hi,
    SAP E-Sourcing 6.0 is the solution. It is same look&feel.
    Regards,
    Masa

  • I am trying to update my apps. When it prompts for my password my old deleted email address comes up. I don't even rember the password for that old email. How can I get to update my apps with my current email?

    I am trying to update my apps. When it prompts for my password my old deleted email address comes up. I don't even rember the password for that old email. How can I get to update my apps with my current email?

    All apps are tied to the Apple ID they are purchased with and is not transferable.
    Delete app and download app with your new Apple ID.

  • Error when defining successor for node 0000000198

    Hello ,
    We are using leave request service on ESS portal.
    From last few days we are getting error like " Error when defining successor for node 0000000198   "
    All agents are assigned properly and also v have checked PFTC setting for Workflow.
    the method which are using is Synchrounous.
    this error is nt coming perticulary for one employee but it is coming for sick leave workflow.
    Please help
    thanks

    Hi,
    This is a binding issue between the workflow container and the task 
    container because we can see the text in the workflow container but 
    it is empty in the task container.
    Our proposed solution is to go into the Dev or QAS environment and 
    regenerate the binding between the workflow and this particular task. 
    We will test and if this works, this will resolve issue.

  • Error when defining successor for node

    Experts,
    We are having a problem with one of our workflows that keeps erroring whenever we try to complete it.  The error message states "Error when defining successor for node 0000000159".  This error does not occur in 4.6c environment and the workflow is working fine.  However, our team is in the process of upgrading to ECC 6.0 and the workflow is not working properly in that environment.  The workflow is designed for BO BUS2038 and the error occurs when we try to close all tasks and complete the workflow.  Can someone direct us to something that we can check, we've pretty much exhausted all our options?  Thanks.

    Hi Teferi,
    This problem occurs in ECC 6 when a step with Synchronous Task/Method does not have the Step executed outcome activated (this is allowed in 4.6C for synch task with terminating events). Check if your Task/method is synchronous.
    Cheers,
    Ramki Maley.

  • Hi, Might I know that how to setup the printer setting at InDesign CS6 for the Lable print?

    Hi, Might I know that how to setup the printer setting at InDesign CS6 for the Lable print?

    Label printing isn't something you set up in the print dialog in ID. If your print driver has an n-up feature that might work, but in general you need to create pages of labels to fit your sheets in ID, then print. If you are talking about doing a merge of an address list, read about Data Merge in thehelp files.

  • Selecting multiple values in a prompt for a BI Publisher report

    Hi,
    I selected multiple values in a prompt for a BI Publisher report and ran the report. The report run fine with single value. But it run to error with mutiliple value. The Oracle Business Intelligence Publisher version is release 11g (11.1.1).
    Thanks in advance
    Susan

    Thanks for your replies !
    Is there any other way to achieve this ?
    There is 1 InfoObject which has 2 fields Employee and Department.
    Employee     Department
    001                A
    001                B
    001                C
    In the report there should be 1 row for Employee 001 with all the Departments displayed in the same cell separated by commas.
    Can this be done in the backend through a ABAP code?

  • How to setup a Default Playlist to Airport but allows BYOD playlist override?

    Sorry for the unclear description.
    Here is what I am trying to accomplish.  I have my laptop or ipod playing a default playlist to my Airport express attached to my Stereo system.  The music plays fine with no issues.  I come into the house and want to play music from my iphone or ipad, I cannot connect or play to airport express since it is already sync'd or acquired by my laptop.
    My goal is to have a default playlist playing all the time.  When myself, my kids, or anyone comes in to house they can have priority over my laptop to play their music.  Then when they disconnect, stop playing music, or leave the house; the default playlist kicks back on and continues to play out the speakers via the airport.  I am trying to do this without human manual interaction.
    I can do all of this manually like disconnect laptop, new device syncs to airport, then when they leave manually start playlist.  But I am trying to figure out how to do this dynamically without human interaction.
    Any ideas or solutions on how to get this to work?
    Thanks!
    T.

    Hello,
     I'm either blind or over-worked (probably both) but I can't seem to find how to setup a DMZ on the XTM 330. I need to add an Avaya IP phone system and don't want to try using SIP because the vendor said they need no NAT.
    Can someone please either direct me to the correct spot in the documentation or tell me how to do it?
    Thanks in advance
    This topic first appeared in the Spiceworks Community

  • How to change the default structure when exporting data in CSV format?

    Hello,
    can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
    If it is possible where can we find these structure ? In the blueprint customizing ?
    Thank you very much,
    Christian

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

Maybe you are looking for

  • Need help on Java Mapping

    000000000000F0011000001448MSQUAL9010000000906                                                                                * 200798438321H001                                                                                SHEN.500010/10/200723:56:55

  • Tuning the memory structure

    Hi folks, I have lots of misses in library cache. Can someone tell me how I can identify or fix the problem? SQL> SELECT Sum(pins) AS "Executions", Sum(reloads) AS "Cache Misses while Executing", Round(Sum(reloads) / Sum(pins) * 100, 2) AS "Misses Ra

  • HP iPaq hx2490 problem

    Hi all, I've been trying to get my iPaq to connect to my PowerBook G4, running 10.4. It connects fine for file transfers both ways, and I can pair the two together no problem. When I try to connect with the hopes of PocketMac though, it just doesn't

  • ORA-00471: DBWR process terminated with error

    Dear all, I got this error in alert log and database got down. ORA-00471: DBWR process terminated with error Wed May 24 19:17:37 2006 PMON: terminating instance due to error 471 Instance terminated by PMON, pid = 11642 Wed May 24 19:28:15 2006 I am h

  • How do I open .zip files on my macbook air?

    I'm unable to open .zip on my MacBook Air. When I double click on the .zip folder it creates another zip icon in the finder and renames it as .zip.cpgz. I easily could open zip on my MacBook Pro just by double clicking.