Semicolon or not?

AS/400 complained when I supplied SQL statements ending with a semicolon. Is it best practise to end with a semicolon or not?

since it is not necessary at all for jdbc, I think you can remove it

Similar Messages

  • Webi 4.0 Passing parameters - how the heck ! does it work or not ?

    dear all
    i am knew to all this, quite capable of reading manuals, and an ex ABAPer in SAP.
    but when it comes to trying to pass a single parameter to a Webi report, based upon the new open document v4.0 syntax, it has finally got me.
    it seems i am not alone either.
    this works, and opens the webi with the full contents
    http://localhost:8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AXofXym2kBRLuR4NwFiMPwo&sIDType=CUID&sType=wid
    i have tried both, a "new parameter" and a universe parameter, based upon my dimension "State", with no such luck on the underlying webi query filter.
    i thought i would only have to add "&lsSState=VIC" (no including the quotes), for it to filter my records for the state Victoria (no points for guessing where i am). But no. I still get all the same old records.
    then i tried *District=VIC", still the same old records without applying the query filter.
    so what am i doing wrong ! please ! help !
    thanks

    finally, here's the deal
    the opendocument 4.0 documentation is wrong. the parameter values are separated by at semicolon, and not a comma. also, do not put square brackets around them.
    this works
    u2022     lsMpmDistrict=NSW
    u2022     lsMDistrict=NSW
    u2022     lsMpmDistrict=NSW;SA
    u2022     lsMDistrict=NSW;SA
    this does not work
    u2022     lsMDistrict=[NSW],[VIC]
    u2022     lsMDistrict=[NSW];[VIC]
    if only the documentation explained it properly, i would have saved hours of time.

  • Ldapclient  doesn't  accept semicolon-separated parameters

    When I try to change some of the parameters with ldpaclient using semicolon part of command after semicolon is not accepted.
    I am trying folowng:
    ldapclient mod -a serviceSearchDescriptor=passwd:ou=east,dc=example,dc=com?one;ou=west,dc=example,dc=com?one
    #ldapclient list
    NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=east,dc=example,dc=com?one
    part after semicolon (;) is missing and authentication for group ou=west,dc=example,dc=com doesnt work.
    Is this some bag in ldapclient?
    My version of solaris is:
    #uname -a
    SunOS Ultra25 5.10 Generic_127127-11 sun4u sparc SUNW,A70

    I'm presuming that if you've typed that into a shell, that the shell thinks everything after the semicolon is a separate command. And since variable assignments are valid commands, you don't get a syntax error. But you probably have a variable 'dc' set in your shell now.
    Enclose the entire argument in quotes or escape the semicolons.
    Darren

  • Diff tool - Bug with comments not escaped

    Diff tool in version 3.1.07
    I have a new table that includes comments on the columns. Some of those comments have single quotes in them like in the words "don't" or "user's". The diff script is not escaping those quotes in the CREATE TABLE DDL so the DDL fails.
    Another issue is that semicolons are not placed at the end of CREATE OR REPLACE FORCE VIEW statements.
    Edited by: EdInWisconsin on Feb 13, 2012 8:39 AM

    Found another issue:
    Forward slashes not placed at end of statements to create/replace packages or procedures. This caused several of my procs to run together and was pretty obvious once it happened but easy to miss when reviewing the script and obviously caused problems.

  • Error i am getting while using the evaluate function in a reprot

    hi all,
    can't we use semicolon in Evaluate function
    Semicolon is not allowed in Evaluate Functions without proper escape i.e. \; (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT case when 1=0 then USER_INFORMATION.USERNAME else EVALUATE(''my_func(%1,%2,%3)'',''aa'',''bb'',''Hindu;All Natl and Local'') end FROM xxx_xxx_xx')}
    SQL Issued: SELECT case when 1=0 then USER_INFORMATION.USERNAME else EVALUATE('my_func(%1,%2,%3)','aa','bb','Hindu;All Natl and Local') end FROM xxx_yyy
    Thnx

    Hi,
    Try this
    EVALUATE('my_func(%1,%2,%3)','aa','bb','Hindu\;All Natl and Local')Without any proper escape character '\' obiee(EVALUATE function) will not accept ';'
    Thanks,
    Saichand.v

  • Help needed to iterat a List in Java

    HI,
    I am new to Java and I am not sure how to do this.Please help me with following.
    I have a List called injuryList which contains all my injury data from database,how do I iterate it with for loop and get my data.
    List<InjuryRecord> injuryList = (List<InjuryRecord>)model.get("injuryRecord");
    //I have to do something like this...I am not sure how to do it..
    for(int i =0; i??? ; i++)  (please help me with the middle condition)
       injuryList.get(i)
    or should I iterate like this:
    for (Iterator itr = injuryList.iterator(); itr.hasNext();) {
           Object o = itr.next();    }
    but how do I pull data from injuryList..Please help me
    If possible I want to do with for loop.
    Please help...
    Thanks,

    Darryl.Burke wrote:
    Umm.. devote a little time to thinking about this, but with the limited information, I'm guessing a bit..
    -- Which class has a method getIjuryNumber() (is there a typo there?)*** Yes, it was a typo,,I just corrected it
    -- What is the class of the object returned by injuryList.get (i) (is there a semicolon missing there?)** there is a class called InjuryRecord.java which has all getters and setters ..which I have included in my imports
    No semicolon is not missing,,it was typo
    -- (Maybe this should come first) Do you understand that a method returns a reference to an object (or void)?*****No, I am not sure about this
    >
    So, finally, should the parameter to method yyy be a list, or an object retrieved from the list using get (...)?
    ******I think it should be a List,it doesn't have to though..but I thought if I pass the List I can get each field....How does it work with object??
    db

  • Drop Frame vs. Non Drop Frame Timecode in DVDSP3

    The manual is rather spare in its discussion of the issue of timecode, but it does say that the first video asset determines whether the timecode in DVDSP is drop frame or non drop frame.
    Question 1: Does this refer to the first video asset in the V1 track or the first video asset imported into the project?
    Question 2: If video is encoded using Compressor prior to import into DVDSP, is the choice of drop frame or non drop frame set by Compressor, or does it automatically use the timecode inherent in the original video?
    Question 3: Does the DVD spec require a particular timecode (or is either acceptable)? In other words, will DVDSP convert non drop frame video assets to drop frame (or vice versa) during the build process in order to conform to spec?
    I am having timecode issues and I am trying to narrow down the culprit. It can be either FCP, Compressor or DVDSP, or some combination of the three. Since my timeline in DVDSP has a semicolon separator between the minute and second values, I am assuming DVDSP is operating using drop frame timecode.
    How can I confirm the timecode of my video assets? Is there a way to get this information? I tried opening the video in QT and viewing properties but I could not find the info. QT does not seem to display frames so I cannot check the separator to see if it is a semicolon or not.
    Thanks in advance for any and all help.
    TN

    How can I confirm the timecode of my video assets? Is
    there a way to get this information? I tried opening
    the video in QT and viewing properties but I could
    not find the info. QT does not seem to display frames
    so I cannot check the separator to see if it is a
    semicolon or not.
    Thanks in advance for any and all help.  
    In the browser in Final Cut it will tell you all the information regarding your video assets or clips.
    DVDSP lets you pick what time code you want in encode window and will conform your clips accordingly.
    May I ask what kind of timecode issues you are having?
    Dual G5, iMac G5, PowerBook G4, IBook G4, G3, 604e   Mac OS X (10.3.4)  

  • Problem with SQL Plus

    I'm getting started with Oracle.
    I've just successfully installed Oracle 11g. When I opened SQL plus, and tried typing a statement SELECT SYSDATE FROM dual, the answer display is : 2 .
    Then i tried with SELECT 2*6 FROM dual, and it still appeared with 2.
    I'm really confused.
    Plz explain it to me. Thanks in advance.
    Edited by: user13011143 on Apr 24, 2010 1:10 AM

    Is this what you are seeing?
    SQL> select sysdate from dual
      2  If so put a semi-colon at the end and hit the Enter key.
    SQL> select sysdate from dual
      2  ;
    SYSDATE
    24-APR-2010 03:28:13
    SQL>or more properly:
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    24-APR-2010 03:29:10
    SQL> The semicolon is not optional.

  • BODS cannot create store procedure at DB2 at Unix

    Hi,
    I run BODS X3.1 and it can't create, drop store procedures at DB2 at unix. It recommends to authorize the user to do so. However, I have checked DB2 online doc, it mentioned need to set CREATE PROCEDURE authority. However, I can't find any command to do it.
    Does anyone using DB2 that can provide help?
    Thank you.

    I think I got found the bug. It is select from a regular table to load another regular table using Auto correct load method. If only normal loading, no create procedure sql is generated and no warning message.
    For using Auto correct load method:
    (1) first, it got to perform drop procedure as:
    DROP PROCEDURE "BODSOWN".di1125368_1FOOTE; .
    Note:
    (a) I run this command at db2 and it contain syntax error, saying:
    SQL0104N  An unexpected token ";" was found following "WN".di1125368_1FOOTE".
    (b) which mean the semicolon ; is not needed. If I delete this ; away, it can go through but still will complain the stored procedure "BODSOWN.di1125368_1FOOTE" doesn't exist. But that is another issue which is expected.
    (2) secondly, It will generate a CREATE PROCEDURE as such:
    CREATE PROCEDURE
    "BODSOWN".di1125368_1FOOTE ( IN before_c1  VARCHAR (100)  , IN after_c1  VARCHAR (1) , IN after_c2  VARCHAR (40) , IN after_c3
    INTEGER , IN after_c4  VARCHAR (100)  )
    LANGUAGE SQL
    BEGIN
    DECLARE local_var INT DEFAULT 0;
    SELECT COUNT(*) INTO local_var
    FROM "BODSOWN"."FOOTER_RECORD"
    WHERE "DI_FILENAME" = before_c1 ;
    IF local_var = 0 THEN
    INSERT INTO "BODSOWN"."FOOTER_RECORD" ("RECORD_TYPE", "SRCSYS_OR_COUNTER", "ROW_COUNTER", "DI_FILENAME")
    VALUES (after_c1, after_c2, after_c3, after_c4 );
    ELSE
    UPDATE "BODSOWN"."FOOTER_RECORD"
    SET "RECORD_TYPE" = after_c1 ,
    "SRCSYS_OR_COUNTER" = after_c2 ,
    "ROW_COUNTER" = after_c3 ,
    WHERE "DI_FILENAME" = before_c1 ;
    END IF;
    END
    Note:
    (a) this create procedure contains syntax error, the line "ROW_COUNTER" = after_c3 , a comma shouldn't be inserted which afterward is the WHERE clause. Meaning is should be "ROW_COUNTER" = after_c3  without comma.
    (b) if i run this create procedure at db2 without the comma error, it will be successful, if not if will give error saying:
    SQL0104N  An unexpected token ""DI_FILENAME"" was found following "" =
    after_c3 , WHERE".

  • Ldapclient  and multiple location for searching

    When I try to change some of the parameters with ldpaclient using semicolon part of command after semicolon is not accepted.
    On http://docs.sun.com/app/docs/doc/806-4077/6jd6blben?a=view I read that if I want to search in ldap on multiple locations I have to split multiple parameter with semicolon.
    I try folowing:
    ldapclient mod -a serviceSearchDescriptor=passwd:ou=east,dc=example,dc=com?one;ou=west,dc=example,dc=com?one
    #ldapclient list
    NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=east,dc=example,dc=com?one
    but part after semicolon (;) is missing and authentication for group ou=west,dc=example,dc=com doesnt work.
    Is this some bag in ldapclient?
    My version of solaris is:
    #uname -a
    SunOS Ultra25 5.10 Generic_127127-11 sun4u sparc SUNW,A70

    if I put argument in quotes command work properly.
    #ldapclient mod -a serviceSearchDescriptor="passwd:ou=east,dc=example,dc=com?one;ou=west,dc=example,dc=com?one"

  • SDK - Win2K problem

    Whenever I code java under Win2K i get the following error on every program:
    Exception in thread "main" java.lang.NoClassDefFoundError: <classname>
    however, when i run under linux the programs run without a hitch. i first had this problem with java 1.3 so i uninstalled it and upgraded to 1.4 but i still have the problem.
    i also get compile errors when i try and create an instance of an external class in a program under Win2K, but when i run under linux, again the code is accepted fine.
    i have compiled from the command line (instead of from third party editors) and i still get the errors so i know its not a problem with configuring the editor i choose to use.
    any ideas? this is really important to me otherwise i cannot program under windows :-(

    It's really strange... is the classpath properly set?
    You use the -cp listing the paths in which your classes reside.
    Notice also that under Windows the path separator char is ; (semicolon), and not : (colon) as it is in *X, and file separator is backslash, and not slash...
    Example:
    java -cp.\;..\myclasses;d:\javalibs\common.jar com.monky.myapp.MyApplicaton

  • Append text on dropping in jTextArea

    Hello forum members;
    I need help for appending some text while dropping in a text area.
    My requirement is :
    I have a jtextfield and jtextarea.I have to drag the texts from the text field and drop on textarea.
    While dropping text from text field to textarea the text will move to textarea and then if the user will drag again the text from the textfield and drop on the textarea then the newly dragged text will append /add on the text at the end with a semicolon(;) .
    For example :-
    if the textfield contains text is "redtext" and drop for fist
    time on text area the text area text will be "redtext" and when user drag for second time the text "bluetext " then the new text in the text area will be "redtext;bluetext"
    and then if the user will drop "greentext " then the new text will be "redtext;bluetext;greentext" and so on. i.e a semicolon will be added at the end of the text.
    Below is the code , please help me.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class AppendOnDrop extends JFrame{
         private javax.swing.JLabel jLabel1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JPanel jPanel2;
        private javax.swing.JTextField jTextField1;
         private javax.swing.JTextField jTextField2;
        private javax.swing.JTextArea jTextArea1;
          public AppendOnDrop() {
            super("AppendOnDrop Test");
            setSize(300, 100);
             jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField(2);
              jTextField2 = new javax.swing.JTextField(2);
            jPanel2 = new javax.swing.JPanel();
            jTextArea1=new javax.swing.JTextArea(10,10);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jLabel1.setText("100");
            jLabel1.setTransferHandler(new TransferHandler("text"));
            MouseListener listener = new DragMouseAdapter();
            jLabel1.addMouseListener(listener);
              jTextField1.setMaximumSize(new java.awt.Dimension(30, 28));
            jTextField1.setDragEnabled(true);
              jTextField1.setTransferHandler(new TransferHandler("text"));
              jTextField2.setMaximumSize(new java.awt.Dimension(30, 28));
            jTextField2.setDragEnabled(true);
              jTextField2.setTransferHandler(new TransferHandler("text"));
              jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Drag")));          
            jPanel1.setLayout(new BoxLayout(jPanel1, BoxLayout.X_AXIS));
            jPanel1.add(jLabel1);
             jPanel1.add(jTextField1);
              jPanel1.add(jTextField2);
            jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Drop"));
            jPanel2.setLayout(new BoxLayout(jPanel2, BoxLayout.X_AXIS));
              jPanel2.add(jTextArea1);
            getContentPane().add(jPanel1, BorderLayout.WEST);
            getContentPane().add(jPanel2, BorderLayout.EAST);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
         private class DragMouseAdapter extends MouseAdapter {
            public void mousePressed(MouseEvent e) {
                JComponent c = (JComponent)e.getSource();
                TransferHandler handler = c.getTransferHandler();
                handler.exportAsDrag(c, e, TransferHandler.COPY);
           public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new AppendOnDrop().setVisible(true);
    }Thanks

    Thanks very much hiwa;
    This code snippest helped me a lot.This is working fine.
    But on the first drag also the semicolon appended in the jTextArea. How to avoid the appending of semicolon for the first drag , is there any method for it i.e while user will drop for the first time the semicolon will not be appended but while drop for second time onwords the semicolon will be appended.
    And application requirement is bit changed .i.e
    I have a jlabel and a jtext area (as mentioned before).But now to make the functionality easy for user ,,
    the user will only drag the label not the text from the text field and then the corresponding texts from the text field will move with the label dragging and dropped on the text area i.e not the jlabel value will dropped only the text will drop on text area.
    For eexample:
    if the label value is 100 and the text fild contains the texts as "red" , if the user will drag the label i.e 100 the text "red" will be dragged and while dropping to text area the texts only from the text field i.e "red" will be dropped but 100 will not be dropped any where.
    please help me
    Thanks & Regards
    Mahenda

  • MigrationTool Update 4.0 to 4.1 error

    My OS is Windows. I'm getting error when running the MigrationTool to upgrade to ACS4.1
    java -cp log4j-1.2.16.jar:mysql-connector-java-5.1.12-bin.jar:migrationTool.jar com.adobe.adept.migration.MigrationTool -o out.txt
    The error I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/adobe/adept/migra
    tion/MigrationTool
    Caused by: java.lang.ClassNotFoundException: com.adobe.adept.migration.Migration
    Tool
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: com.adobe.adept.migration.MigrationTool.  Program
    will exit.
    Any idea how to fix this?

    The Java CLASSPATH separator character is platform dependent.  For Windows it is the semicolon ; and not the colon : like it is on most Unix variants.

  • Delay and fade in

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function($){
    $('#a').delay(5000).fadein(2200)
    $('#b').delay(8000).fadein(2200)
    </script>
    <style type="text/css">
    .a{
    text-align:left;
    .b{
    text-align:center;
    </style>
    </head>
    <body>
    <p id="a"> Hello</p>
    <p id="b" align="center"> Hello</p>
    </body>
    </html>
    This is the code.. but for some reasin the thing doesnt seem to be working,,Pl ease help

    Where did you learn it from?? And no the semicolons are not making a difference, the same thing is happening!
    This is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function($){
        $('#a').delay(5000).fadeIn(2200);
        $('#b').delay(8000).fadein(2200);
    </script>
    <style type="text/css">
    .a{
    text-align:left;
    .b{
    text-align:center;
    </style>
    </head>
    <body>
    <p id="a"> Hello</p>
    <p id="b" align="center"> Hello</p>
    </body>
    </html>

  • How to separate / validate multiple emails?

    Hi,
    User enters single or multiple emails in the field. We provide help saying that all emails must be separated by either a comma or semicolon. Not everyone follows that so if user enters [email protected] [email protected] the email is not sent. There can be more than 2 emails.
    So is there a way to check that those emails are separated by either comma or semicolon, and if not add it before email is sent?
    Thank you

    Hi Frank,
    I am trying to validate multiple email addresses as well. Currently, my function works for only one email address. Is there a way to extend this function? I am using Oracle 9i.
    FUNCTION validate_email_format(p_address IN VARCHAR2) RETURN VARCHAR2 IS
      l_dot_pos    NUMBER;
      l_at_pos     NUMBER;
      l_str_length NUMBER;
    BEGIN
      l_dot_pos := instr(p_address, '.');
      l_at_pos  := instr(p_address, '@');
      l_str_length := LENGTH(p_address);
      if ((l_dot_pos = 0) OR (l_at_pos = 0) OR (l_dot_pos = l_at_pos + 1) OR
          (l_at_pos = 1)  OR (l_at_pos = l_str_length ) OR
          (l_dot_pos = l_str_length)) then
        return 'FAILURE';
      end if;
      if instr(substr(p_address, l_at_pos), '.') = 0 then
        return 'FAILURE';
      end if;
      return 'SUCCESS';
    END validate_email_format;Thanks

Maybe you are looking for

  • Cannot import music (appears to be mostly .wma)

    Hello, I figured out by reading here that itunes couldn't import .flac files, so that's been sorted, but from what I can tell, I should have no problem importing .wma files. But when I do:  file > add to library > and then select either the folder or

  • External Hard Drives going to sleep.

    Is there a way to set an external drive to NEVER sleep. I have several externals (Lacies and Seagates running USB2.0) and they go to sleep if not accessed regularly. Which is a problem with a documentary timeline as if I'm in a viewing it freezes whe

  • Unable to deploy JMS adapter

    hi i have an problem when I finish to create an JMS adapter, JDEV display an message error unable to get deployment file i don't khow why??

  • Enterprise Manager shows no roles available

    Hi: I'm trying to get Oracle 10.2 running on RHEL 4. Someone else has installed Linux and Oracle. The oracle installation did everything but create a database instance, so I ran dbca and created one. I am unable to start/shutdown the database via EM.

  • Capital Investment Area was posted Depreciations in an incorrect period

    Hi , Capital Investment Area was posted Depreciations in an incorrect period, they skip a period. Can you determine if we can reverse those postings so that they can post in the correct period? Would appreciate your fastest reply. Regards Prasad