Multiple inputs from a user using the same variable !

Hi Folks,
I am trying out the following code block,which should ask the users to enter 3 different names using '&' operator & assign it to a variable v_ename every time the loop executes.
declare
type ename_table_type is table of
emp.ename%type
index by binary_integer
ename_table ename_table_type
begin
for i in 1..3 loop
ename_table( i ):= '&v_ename';
dbms_output.put_line(ename_table(i));
end loop;
end
The above code accepts a single input from the user & assigns the same input 3 times to "ename_table".thus the output shows the same name 3 times.
Is it possible that we can have the user input 3 different names & then print them using the concept of Index by binary_integer ?
Please help
Thanks
Om

Server side PL/SQL is NOT designed for this kind of user interaction.
the "&" character is intrepreted by the SQL*Plus application and before the PL/SQL block is submitted to the DB by the SQL*Plus application, it replaces each appearance of the &variable with the value entered. Once the block gets to the database, all it sees is a constant value - no more a variable name.
&variable_name is a SQL*Plus application thing, not the database.
Where will this type of logic will be eventually used? What client application will interact with the server side PL/SQL? You need to code this input logic in that client application.

Similar Messages

  • How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?

    How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
    We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS  on each Mac but sharing the same Apple ID: xxxxxx
    I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
    Do we have to set up a diffrent Apple ID for each other?
    Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy)  it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
    Thanks

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • Can multiple computers in one office use the same Adobe ExportPDF subscription?

    Can multiple computers in one office use the same Adobe ExportPDF subscription?

    Hi urinutrioned,
    An ExportPDF subscription is tied to a single Adobe ID and password, so it's meant for a single user  to access.
    Best,
    Sara

  • Hi everyone, to use the portal with many users using the same portal user?

    I have an another question is possible to use the portal with many users using the same portal user with diferent roles in the same time?
    thanks

    Hi Israel,
    It is possible to have same user logged in through differnt terminals or browser windows. However if there are say 10 roles assigned to that user, all 10 will be visible in all the windows. However you may open and work on different roles.. in the different windows.
    Note that the real time collaboration features shall not be available if the same user logs in multiple times.
    Hope this is useful.
    Regards,
    Anagha

  • How use the same variable in read and write way?

    I don't know how to use the same variable in a .vi like an indicator and a
    control at the same time.
    Can someone help me?
    Thnks.

    Thanks!!!
    I'll try.
    "Adam Russell" escribió en el mensaje
    news:bkavdl$rd021$[email protected]..
    > Create local variables from the control (or indicator) and you can make
    > each local either read or write. Be careful of race conditions.
    >
    > "Urban" wrote in message
    > news:bkam3b$c4k$[email protected]..
    > > I don't know how to use the same variable in a .vi like an indicator and
    a
    > > control at the same time.
    > > Can someone help me?
    > >
    > > Thnks.
    > >
    > >
    >
    >

  • Multiple users using the same templates?

    The place I work puts out a weekly TV show and we regularly use the same lower thirds for various titles that come up throughout the show. After opening them up in Motion 3 I saved the titles as templates, which is great because now I can do all the work in FCP rather than Motion.
    However, the templates are saved to my user on the local HD. We have multiple editors that work on multiple computers.
    Is there a way to make the templates available on all computers to all users?
    Any suggestions is appreciated.
    jesse.

    Too, here's one more roadblock to (hypothetically) consider.
    Even if what we've discussed happened to work, there would be one more issue: network bandwidth. When you add one of these "Master Templates" to a FCP timeline, then drag it to the browser, then right-click and select "Reveal in Finder", it points straight to the Templates folder that I alluded to earlier. Locally.
    So if this template lived in one central place then, potentially, all editors could be trying to access it, in real-time, remotely, simultaneously. I think this would wreak havoc quickly. Unless of course you're employing a SAN. Now we're talking about a whole new beast. (Unless you've got a SAN already. ;))
    Bottom line is you're going to distribute templates to all editors individually. Unless you're developing new templates all the time, then this shouldn't be too much of a chore. Just out of curiosity, how many editors will this be deployed to?

  • I'm trying to use my iPad mini for the first time with a previous apple ID and password but it will not connect to iTunes but I can download apps from my iPhone using the same appleID and password and it works on my iphone...PLEASE HELP NOW

    I'm trying to use my iPad mini for the first time with a previous apple ID and password but it says "iTunes is not working try again"...it allowed me to download an app on my iPhone using the same apple ID & password but all my apps are in "Waiting Status" on my iPad mini because it says "iTunes is not working"...PLEASE HELP ME NOW!!!

    Previous user installed iOS 7 beta on that iPhone.
    Take it back and get your money returned. You
    are running into a new security feature. Whoever owns
    the ID that it is asking for is the only person who can
    remove the security. That iPhone is worthless to you.

  • How do I view multiple images from different projects at the same time?

    Hello
    I've been trying to find the answer in the user manual, but no luck so far.
    I did find how to open 2 projects at once, but I can only see one image at a time in the viewer and I have to keep going back and forth between projects to compare images. (These are scans of old photos and I want to eliminate the ones that are poorer quality, so need to compare numerous images from 2 sets of scans)
    How can I view an image from one project at the same time as an image from another? I know that it can be done in the same project by apple-clicking the second, third etc image, but this doesn't work if the images are from different projects.
    Thank you
    Elizabeth

    Thank you again Tony
    I've now created an album, independent of the projects, and dragged test images into it and it does just the job I needed. Now i just need to keep my brain sorted with which ones are which while i'm working
    Elizabeth

  • Upon upgrading to CC from CS6 suite, use the same serial number?

    Upon upgrading to this new Cloud, I was told I could continue to use my existing CS6 suite side by side with the new CC. But then I was told they use the same serial number, how is this possible?

    Please ask the question in the Creative Suites (http://forums.adobe.com/community/creativesuites ) or Creative Cloud (http://forums.adobe.com/community/creative_cloud) forums.

  • How can multiple users use the same Creative Cloud Individual on one single-machine?

    We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
    Is there a way to make the local installation usable on that single machine for multiple users?
    Thanks in advance for your reply

    Serenatasystems do the other users not have administrator access?  What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription?  Do your Adobe Creative applications then exit trial mode?

  • Multiple users, using the same web app items?

    Iam building a service for familes were the parents should be able to read / add / edit the same secure web app items.
    So when logged in the user have access to the same user submitted web app items.
    I found a thread answerd by Liam and my guess this is not possible? Can it be partial be done e.g. just let the "family" read the familys items? And no there is not possible to add / pair the users in backend because there are to many.
    Any tip where to look? I have tried to use the "uniqe ID, datasource, unique template" method but do you "wizards" :-) think that's the way to go?
    This thread suggest it's not doable.
    http://forums.adobe.com/message/5547102
    Thanks!
    //Johan
    Formpartner

    Not in association Johan no.
    You can have one "Family" login they all use to log in but it will kick one out if the other logs in and of course, multiple people sharing the same login increases the security risk.
    You can only set one owner as well.

  • Multiple threads but they are using the same thread ID

    I'm a newbie in Java programming. I have the following codes, please take a look and tell me what wrong with my codes: server side written in Java, client side written in C. Please help me out, thanks for your time.
    Here is my problem: why my server program assigns the same thread ID for both threads???
    .Server side: start server program
    .Client side: set auto startup in /etc/rc.local file in a different machine, so whenever this machine boots up, the client program will start automatically.
    ==> here is the result with 2 clients, why they always come up the same thread ID ????????
    Waiting for client ...
    Server thread 1024 running
    Waiting for client ...
    Server thread 1024 running
    But if I do like this, they all work fine:
    .Server side: start server program
    .Client side: telnet or ssh to each machine, start the client program
    ==> here is the result:
    Waiting for client ...
    Server thread 1024 running
    Waiting for client ...
    Server thread 1025 running
    server.java file:
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.util.Hashtable;
    import java.util.Enumeration;
    import java.util.regex.Pattern;
    import java.util.Date;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class Server extends Frame implements Runnable
    private ServerThread clients[] = new ServerThread[50];
    private ServerSocket server = null;
    private Thread thread = null;
    private int clientCount = 0;
    //some variables over here
    public Server(int port)
    //GUI stuffs here
    //network stuff
    try
    System.out.println("Binding to port " + port + ", please wait ...");
    server = new ServerSocket(port);
    System.out.println("Server started: " + server);
    start();
    catch(IOException ioe)
    System.out.println("Can not bind to port " + port + ": " + ioe.getMessage());
    public boolean action(Event e, Object arg)
    //do something
    return true;
    public synchronized void handle(int ID, String input)
    //do something
    public synchronized void remove(int ID)
    int pos = findClient(ID);
    if (pos >= 0)
    //remove a client
    ServerThread toTerminate = clients[pos];
    System.out.println("Removing client thread " + ID + " at " + pos);
    if (pos < clientCount-1)
    for (int i = pos+1; i < clientCount; i++)
    clients[i-1] = clients;
    clientCount--;
    try
    {  toTerminate.close(); }
    catch(IOException ioe)
    {  System.out.println("Error closing thread: " + ioe); }
    toTerminate.stop();
    private void addThread(Socket socket)
    if (clientCount < clients.length)
    clients[clientCount] = new ServerThread(this, socket);
    try
    clients[clientCount].open();
    clients[clientCount].start();
    clientCount++;
    catch(IOException ioe)
    System.out.println("Error opening thread: " + ioe);
    else
    System.out.println("Client refused: maximum " + clients.length + " reached.");
    public void run()
    while (thread != null)
    try
    {       System.out.println("Waiting for a client ...");
    addThread(server.accept());
    catch(IOException ioe)
    System.out.println("Server accept error: " + ioe); stop();
    public void start()
    if(thread == null)
    thread = new Thread(this);
    thread.start();
    public void stop()
    if(thread != null)
    thread.stop();
    thread = null;
    private int findClient(int ID)
    for (int i = 0; i < clientCount; i++)
    if (clients[i].getID() == ID)
    return i;
    return -1;
    public static void main(String args[])
    Frame server = new Server(1500);
    server.setSize(650,400);
    server.setLocation(100,100);
    server.setVisible(true);
    ServerThread.java file
    import java.net.*;
    import java.io.*;
    import java.lang.*;
    public class ServerThread extends Thread
    private Server server = null;
    private Socket socket = null;
    private int ID = -1;
    InputStreamReader objInStreamReader = null;
    BufferedReader objInBuffer = null;
    PrintWriter objOutStream = null;
    public ServerThread(Server server, Socket socket)
    super();
    server = _server;
    socket = _socket;
    ID = socket.getPort();
    public void send(String msg)
    objOutStream.write(msg);
    objOutStream.flush();
    public int getID()
    return ID;
    public void run()
    System.out.println("Server thread " + ID + " running");
    while(true)
    try{
    server.handle(ID,objInBuffer.readLine());
    catch(IOException ioe)
    System.out.println(ID + "Error reading: " + ioe.getMessage());
    //remove a thread ID
    server.remove(ID);
    stop();
    public void open() throws IOException
    //---Set up streams---
    objInStreamReader = new InputStreamReader(socket.getInputStream());
    objInBuffer = new BufferedReader(objInStreamReader);
    objOutStream = new PrintWriter(socket.getOutputStream(), true);
    public void close() throws IOException
    if(socket != null) socket.close();
    if(objInStreamReader != null) objInStreamReader.close();
    if(objOutStream !=null) objOutStream.close();
    if(objInBuffer !=null) objInBuffer.close();
    And client.c file
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <netdb.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h> /* close */
    #include <time.h>
    #define SERVER_PORT 1500
    #define MAX_MSG 100
    //global variables
    long lines = 0;
    int sd = 0;
    char command[100];
    time_t t1,t2;
    double timetest = 0.00;
    int main (int argc, char *argv[])
    int rc, i = 0, j = 0;
    struct sockaddr_in localAddr, servAddr;
    struct hostent *h;
    char buf[100];
    FILE *fp;
    h = gethostbyname(argv[1]);
    if(h==NULL) {
    printf("unknown host '%s'\n",argv[1]);
    exit(1);
    servAddr.sin_family = h->h_addrtype;
    memcpy((char *) &servAddr.sin_addr.s_addr, h->h_addr_list[0], h->h_length);
    servAddr.sin_port = htons(SERVER_PORT);
    /* create socket */
    sd = socket(AF_INET, SOCK_STREAM, 0);
    if(sd<0) {
    perror("cannot open socket ");
    exit(1);
    /* bind any port number */
    localAddr.sin_family = AF_INET;
    localAddr.sin_addr.s_addr = htonl(INADDR_ANY);
    localAddr.sin_port = htons(0);
    rc = bind(sd, (struct sockaddr *) &localAddr, sizeof(localAddr));
    if(rc<0) {
    printf("%s: cannot bind port TCP %u\n",argv[1],SERVER_PORT);
    perror("error ");
    exit(1);
    /* connect to server */
    rc = connect(sd, (struct sockaddr *) &servAddr, sizeof(servAddr));
    if(rc<0) {
    perror("cannot connect ");
    exit(1);
    //send register message
    rc = send(sd, "register\n", strlen("register\n"), 0);
    //if can't send
    if(rc < 0)
    close(sd);
    exit(1);
    //wait here until get the flag from server
    while(1)
    buf[0] = '\0';
    rc = recv(sd,buf,MAX_MSG-1,0);
    if(rc < 0)
    perror("receive error\n");
    close(sd);
    exit(1);
    buf[rc] = '\0';
    if(strcmp(buf,"autoplay")==0)
    //do something here
    else if(strcmp(buf,"exit")==0)
    printf("exiting now ....\n");
    close(sd);
    exit(1);
    return 0;

    Yes......I do so all the time.

  • I bought my iPhone from apple, had ATT, then changed to Verizon.  Shouldn't I be able to unlock it from Verizon and use the same phone on an ATT account?

    i bought my iphone 4S from apple while i had an att account, then changed to verizon with the same phone.
    verizon said they unlocked the phone from their network so i could return to att, but the iphone 4S won't recognize the att sim card.
    is there anything i can do to use this apple store phone purchase and return to an att network?

    Thank you.
    I'm a little muddy tho...it's not a verizon phone,
    not bought from or through Verizon, but at the Apple store.
    Does that make any differerence?
    On the original box, it says that it supports CDMS & GSM
    I spoke with Verizon this morning. 
    They re-activated the phone to the verizon account,
    unlocked it, and released it.
    Should this make any difference at all?
    My thinking to purchase the iphone through Apple
    was not to dedicate it to either ATT or Verizon network.

  • I can't print multiple pages from a website using the site's print button or 'file - print' and if I try to save as a PDF, it still only saves the first page and then cuts off.

    I'm using Mac OS X 10.5.8 and Firefox version 3.6.8. When I'm on a website and try to print the info on the site, whether I use the site's own 'print' option, or I go to the Firefox toolbar and try to use 'File->Print', only 1 page prints out - it just cuts off mid-page. If I try to save as a PDF instead, the same thing happens in exactly the same spot - it saves as a 1-page PDF and cuts off in the middle of the page. I've already tried all of the suggestions here https://support.mozilla.com/en-US/kb/Printing+a+web+page?s=printing&as=s and the suggestions here http://kb.mozillazine.org/Problems_printing_web_pages and nothing has worked.
    I appreciate any help!!

    I have the same problem... not being able to print website 'Print' pages. I have read carefully the above link and have followed the reset directions in about:config, but I still cannot print in Firefox. Both Google Chrome and IE work perfectly every time. I have verified that the correct printer is selected and that the margins are in order (0.5 all around happen to be what mine are set for). I have resorted to use the Firefox Add On "View this Page in IE" whenever I need to print something. Works like a charm, but come on... it should work in Firefox too! I know there is some setting or something, but the Problems_printing_web_pages link had nothing there that worked for me.

  • How do I stop garageband taking an input from Spotify while using the guitar amps?

    Should be able to do it shouldn't i? I just want to use the amps to play along to songs but the Spotify audio is going through the amps too and resulting in distorted music when using gain

    Do you have an effect or Amp sim turned on?

Maybe you are looking for