Named iterator can not accept certain column names

i have a table named S as
table S
s# varchar2(50;
sname varchar2(20);
now when i try to retrieve the values of this table through named iterator i must supply the same name as java variables in the iterator.
but column "s#" has # character and java does not support this character for a variable name . how shall i achieve this in a named iterator .
this is giving me translation error
#sql iterator IterS (String s#, String sname );

Fahad,
I assume the code you have posted is SQLJ. While I don't use SQLJ -- and hence, don't know what a "named iterator" is, is it possible to use a column alias for the "s#" column? Perhaps the following query:
select s# as ss, sname from sOther obvious suggestions are:
1. change the column name
2. use JDBC (instead of SQLJ)
Good Luck,
Avi.

Similar Messages

  • How can i get the column names in CSV file.

    Hi,
    After execution of infospoke i can not see the column names in that file.How can i get column of respective infoprovider?
    Thanks,
    Gananadha Lenka

    Hello Gana,
    Actually while exporting the data using Info Spoke, we have the possibility to modify the data that we send. This is possible using transformations.
    In your Info Spoke, you have a tab called Transformations.
    Here you need to create an implementation and then use BADi to populate data.
    Check if you can write a start routine sort of thing here and insert a new record into the internal table by hardcoding with your field headings.
    Let me know if you dont know how to create transformations.
    Kris...

  • How to change recordset bahaviour to accept dynamic column names in the where clause

    Hi
    im using php-mysql and i make a recordset and i want to make the column names in the where clause to be dynamic like
    "select id,name from mytable where $tablename-$myvar";
    but when i do this my i break the recordset and it disappear
    and when i use variables from advanced recordset it only dynamic for the value of the column not for the column name
    and when i write the column name to dynamic as above by hand it truns a red exclamation mark on the server behaviour panel
    so i think the only way is to change the recordset behaviour is it? if so How to make it accept dynamic column names?
    thanks in advance.

    As bregent has already explained to you, customizing the recordset code will result in Dreamweaver no longer recognizing the server behavior. This isn't a problem, but it does mean that you need to lay out your dynamic text with the Bindings panel before making any changes. Once you have changed the recordset code, the Bindings panel will no longer recognize the recordset fields.
    Using a variable to choose a column name is quite simple, but you need to take some security measures to ensure that the value passed through the query string isn't attempting SQL injection. An effective way of doing this is to create an array of acceptable column names, and check that the value matches.
    // create array of acceptable values
    $valid = array('column_name1', 'column_name2', 'column_name3');
    // if the query string contains an acceptable column name, use it
    if (isset($_GET['colname']) && in_array($_GET['colname'], $valid)) {
      $col = $GET['colname'];
    } else {
      // set a default value if the submitted one was invalid
      $col = 'column_name1'
    You can then use $col directly in the SQL query.

  • Can we customize the column name in filter view?

    When i select filter view and select an option from the drop down, it shows the name of the column and not the variable set in the prompt.
    I want to customize that name so that it does not show the column name,shows the name given by us instead.
    Please Help!!!

    You can't customize the filter view, play around with the narrative view instead.
    Regards,
    Stijn

  • My smart TV do not accept ":" in Skype name!

    My smart TV do not accept ":" in Skype name! I am very disappointed because now skype name contains a prefix "live:", now I can not use Skype on my Grundig smart TV.

    live:xxxxx is a generic name that is automatically created when you create Skype account using Microsoft account option. However, this Skype name cannot be used as login ID. You login ID is the email address which you have used to create Microsoft Skype account. Unfortunately, you can't login to Skype on TV using Microsoft account.
    http://community.skype.com/t5/Other-features/MSN-sign-in-on-Samsung-Smart-TV/m-p/1975489#M7425
    The only option you have now is to create a true Skype Name account using this signup form and login with this Skype name on your TV.
    https://login.skype.com/account/signup-form

  • Can't edit certain column [MySQL/phpMyAdmin]

    Hi there,
    I got a little problem with my new website. The thing is that I got web page that edits entries in my phpmyAdmin database.
    This works with the only exeption that I can not edit the column "uhrzeit", everything else works like a charm. ;-)
    here is the php-code of that site: (I highlighted where ever the "uhrzeit" column appears)
    <?php require_once('../Connections/Ortner_db.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    $_POST['datum'] = date("Y-m-d", strtotime($_POST['datum'])); 
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ortner_termine SET datum=%s, was=%s, beschreibung=%s, wo=%s, Uhrzeit=%s WHERE id=%s",
                           GetSQLValueString($_POST['datum'], "date"),
                           GetSQLValueString($_POST['was'], "text"),
                           GetSQLValueString($_POST['beschreibung'], "text"),
                           GetSQLValueString($_POST['wo'], "text"),
                           GetSQLValueString($_POST['uhrzeit'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_Ortner_db, $Ortner_db);
      $Result1 = mysql_query($updateSQL, $Ortner_db) or die(mysql_error());
    mysql_select_db($database_Ortner_db, $Ortner_db);
    $query_termin_auswahl = "SELECT id, datum, was, wo FROM ortner_termine ORDER BY id DESC";
    $termin_auswahl = mysql_query($query_termin_auswahl, $Ortner_db) or die(mysql_error());
    $row_termin_auswahl = mysql_fetch_assoc($termin_auswahl);
    $totalRows_termin_auswahl = mysql_num_rows($termin_auswahl);
    $colname_termin_edit = "-1";
    if (isset($_GET['Termineintrag'])) {
      $colname_termin_edit = $_GET['Termineintrag'];
    mysql_select_db($database_Ortner_db, $Ortner_db);
    $query_termin_edit = sprintf("SELECT * FROM ortner_termine WHERE id = %s", GetSQLValueString($colname_termin_edit, "int"));
    $termin_edit = mysql_query($query_termin_edit, $Ortner_db) or die(mysql_error());
    $row_termin_edit = mysql_fetch_assoc($termin_edit);
    $totalRows_termin_edit = mysql_num_rows($termin_edit);
    ?>
    <!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>Christian Ortner</title>
    <meta name="author" content="[email protected]"/>
    <meta name="copyright" content="Webdesign: Matthias Damoser / media powerplant"/>
    <link href="../styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
         <div id="header"><a href="../index.php"><img src="../bilder/header.jpg" width="616" height="109" alt="Christian Ortner Startseite" /></a></div><!-- end of header -->
        <div id="menu">
             <ul>
                 <li><a href="../bio.html">Biografie</a></li>
                <li><a href="../musik.html">Musik</a></li>
                <li><a href="../medien.html">Medien</a></li>
                <li><a href="../projekte.html"> Projekte</a></li>
                <li><a href="../termine.php">Termine</a></li>
                <li><a href="../kontakt.html">Kontakt</a></li>
            </ul>
        </div><!-- end of menu -->
      <div class="trenner"></div><!-- end of trenner -->
        <div id="redaktion">
        <h3>Willkommen im Administrationsbereich</h3>
        <p>Hier können Sie bereits bestehende Termine bearbeiten:</p>
        <form id="terminauswahl" name="terminauswahl" method="get" action="date_edit.php">
        Bitte auswählen:
          <select name="Termineintrag" id="Termineintrag" tabindex="10">
            <?php
    do { 
    ?>
            <option value="<?php echo $row_termin_auswahl['id']?>"><?php echo $row_termin_auswahl['was']?> (<?php echo $row_termin_auswahl['datum']?> )</option>
            <?php
    } while ($row_termin_auswahl = mysql_fetch_assoc($termin_auswahl));
      $rows = mysql_num_rows($termin_auswahl);
      if($rows > 0) {
          mysql_data_seek($termin_auswahl, 0);
           $row_termin_auswahl = mysql_fetch_assoc($termin_auswahl);
    ?>
          </select>
          <input type="submit" name="button" id="button" value="auswählen" />
        </form>
        <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
          <table align="center">
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Datum:</td>
              <td><input type="text" name="datum" value="<?php echo htmlentities($row_termin_edit['datum'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Art der Veranstaltung:</td>
              <td><input type="text" name="was" value="<?php echo htmlentities($row_termin_edit['was'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">zusätzlich Beschreibung (optional):</td>
              <td><input type="text" name="beschreibung" value="<?php echo htmlentities($row_termin_edit['beschreibung'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Ort der Veranstaltung:</td>
              <td><input type="text" name="wo" value="<?php echo htmlentities($row_termin_edit['wo'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right">Uhrzeit:</td>
              <td><input type="text" name="Uhrzeit" value="<?php echo htmlentities($row_termin_edit['uhrzeit'], ENT_COMPAT, 'UTF-8'); ?>" size="32" /></td>
            </tr>
            <tr valign="baseline">
              <td nowrap="nowrap" align="right"> </td>
              <td><input type="submit" value="Datensatz aktualisieren" /></td>
            </tr>
          </table>
          <input type="hidden" name="id" value="<?php echo $row_termin_edit['id']; ?>" />
          <input type="hidden" name="MM_update" value="form1" />
          <input type="hidden" name="id" value="<?php echo $row_termin_edit['id']; ?>" />
        </form>
    <p class="backlink"><a href="../redaktionssystem.php">zurück zur Termin Verwaltung</a></p>     
       </div><!-- end of redaktion -->
    <div id="rot"></div><!-- end of rot-->
        <div id="fotobereich"></div>
         <p>Copyright © 2010 | Alle Rechte vorbehalten | <a href="impressum.html">Impressum</a> | <a href="kontakt.html">Kontakt</a> | <a href="redaktionssystem_login.php">Log-In</a> |</p>
    </div><!-- end of wrapper -->
    </body>
    </html>
    <?php
    mysql_free_result($termin_auswahl);
    mysql_free_result($termin_edit);
    ?>
    Thank you very much for your help!

    I barely understand ur script because it's not fully in English but I guess I could say u are trying to update the ortner_terminate table right?I think for the date u should change like below.
    $date = date("Y-m-d", strtotime($_POST['datum'])); 
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ortner_termine SET datum='$date', was=%s, beschreibung=%s, wo=%s, Uhrzeit=%s WHERE id=%s",
                           GetSQLValueString($_POST['was'], "text"),
                           GetSQLValueString($_POST['beschreibung'], "text"),
                           GetSQLValueString($_POST['wo'], "text"),
                           GetSQLValueString($_POST['uhrzeit'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_Ortner_db, $Ortner_db);
      $Result1 = mysql_query($updateSQL, $Ortner_db) or die(mysql_error());
    Well, I could say u are trying to display the data on form once u clicked the option from list menu. U have to change the termin_edit recordset by filter it as below.
    Not using the URL parameter since u are trying to view the data on the same page.

  • Can not transfer certain CDs

    I can not transfer certain Cds and Albums e.g.:
    2CD set of opera Orphee et Eurydice CD transfers perfectly bur CD2 only transfers first track then stops I have deleted and loaded repeatedly but have given up, the same thing happens with a CD that has 2 tracks with the same name + 3 tracks with the same name, only 2 tracks transfer. I have tried re tagging but to no avail? ZEN X-Fi 6GB

    Yes, can rip OK, the problem is between Creative Central and Zen X-Hi 6GB

  • Why i can not see the columns of "Tax Category" in transaction code FS00

    Dear Experts,
          Why i can not see the columns of "Tax Category" and "Posting without tax allowed" in tab of "Control Data"  transaction code FS00?
           How can i add the columns of "Tax Category" and "Posting without tax allowed"?
    Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    Go to transaction OBD4, and check whether the field "Tax category" is suppressed in group "Account control" for your GL account group.
    If not, then go to OB26 and check the field status for the same field for create, change activity.
    Regards,
    Gaurav

  • Not showing the column name

    Hi
    I am using jdev 11.1.1.3
    .i i dragged an adf table from data control.it has got 3 columns.i changed the name of first column as Lang grades.when i run that it is showing the column name as lang grades.then in that table two fields r mandatory.so in the property inspector i put the show required as true.but after that on running it is not showing the column name as lang grades.there is only the star sign for showing the attribute as required only.

    Hi,
    not enough information. So from your description, a column that is not marked required on its cell renderer component is not displayed at runtime. I am not aware of such a problem and suggest to try a later version of 11g R1 (11.1.1.6) to see if this reproduces. This allows you to exclude a probelm with 11.1.1.3 only
    Frank

  • Hi, I reset my iphone 3gs, and it brought an apple logo on the screen so I restored it to version 6.0 but it can not accept a sim or connect to itunes for activation.what do I do, please help me

    hi, I reset my iphone 3gs, and it brought an apple logo on the screen so I restored it to version 6.0 but it can not accept a sim or connect to itunes for activation.what do I do, please help me

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    But... if the Device has been Modified... this will Not necessarily work.

  • The techs wiped my computer and now I can not get iPhoto it tells me my computer can not accept this application. How do I get iPhoto so I can transfer my backed up photos

    How do I get Iphoto. After resetting up my computer and trying ot manually transfer my iphoto library the app store says I can not accept this application on this computer. How can I get it back?

    Contact the Techs and get them to sort out this account issue.
    Regards
    TD

  • Why i can not find my login name in /etc/passwd?

    why i can not find my login name in /etc/passwd?
    Thank you~

    I want to ask the same question as steve359, where the multi-user accounts information stored?
    I saw mysql user in passwd, do you have any idea on what purpose of mac os ultilize mysql ?
    Thanks!

  • Background callable object :  can not find this class name

    Hi All ,
                  I am following this tutorial link for creating background callable object
    http://help.sap.com/saphelp_nwce10/helpdata/en/9a/e8934258a5ca6ae10000000a155106/frameset.htm
    I have created java and enterprise application DC and deployed successfully. But while creating CO in design time when i am selecting application and entering class as com.examples.bckgco.UserDetailsCallableObject  for Implementation Class Name , and on click next i m getting exception as  "can not find this class name".       package and class name are correct still getting this excetpion message. Plz help me to resolve this solution.
    Regards
    Kavita

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • HT4061 I am unable to load Adobe Flash player on my Apple Ipad are there any clues out there how to by pass this,I can not get certain programs without it ,so I am returning my IPAD,any other programs I can load to get my programs

    I am unable to load Adobe Flash player on my Apple Ipad are there any clues out there how to by pass this,I can not get certain programs without it ,so I am returning my IPAD,any other programs I can load to get my programs

    Apple's iOS platform (iPhone, iPad, and iPod Touch) has never, and will never support flash.
    First on this; Thoughts on Flash. This is from Steve Jobs regarding Apple's views on Flash (2010)
    Second; Adobe stops making Flash for mobile devices. This is from Adobe themselves last year stating that they would stop making Flash for mobile devices.
    If you can find the App equivalent of the programs you are looking for, then congratulations, however, if you require specific 'programs' requiring flash, then the iPad is certainly not for you, and returning it would be the best choice (granted you are still within the return period).
    The lesson in this; Research what a device can and cannot do prior to purchase

  • SIRI: "sorry, but at the moment I can not accept requests"

    often when I ask something answers:
    "sorry, but at the moment I can not accept your requests"
    one minute remains and more "thinking" then responds with the phrase at issue.
    I'm using siri in Italian, can you help me to understand if it's a problem because ios 6 is not perfect or settings.
    thank

    It's because Tim is hitting her to answers on how to fix the maps issue and advice about whether or not to allow people to downgrade back to 5.1.1 because it was stable and it "just worked".
    Keep hitting her, she'll answer after awhile... Tim will go to sleep sometime or pass out from exhaustion. 

Maybe you are looking for

  • Universe based on SAP HANA OLAP connection

    Can I create universe based on SAP HANA OLAP connection ? How can i access SAP HANA view which was created using OLAP connection in WEBI and Dashboard? It does not allow creating Universe on top of SAP HANA OLAP connection and give an error. SAP Busi

  • System unstable and requires reboot after 24 hours - HELP

    I did a clean install of Leopard twice and the same issue appears. The system becomes unstable and requires a reboot. Mail doesn't function correctly and Firefox gives an error, "Another copy of Firefox is running. Only one copy can run at a time'. T

  • CF8 and JRun 4 Clustering question

    I have a production CF8 environment that consists of: 3 Windows 2003 IIS 6.0 servers (behind a load balancer) JRun 4.0 Updater7 with a CF8 instance installed on each server . Each JRun server I created a cluster and added the CF8 instance from each s

  • ITunes 11.1 broke

    So I upgraded to iOS7 and iTunes 11.1, only to have that whole process break my iTunes. I have been trying to fix it for horus and nothing has worked, great job apple. Anyway, the problem is that when I plug in my iPhone 4s, my iTunes says :"iTunes r

  • How do I upgrade previously puchased songs?

    I used to be able to upgrade old music to iTunes plus until I got the new version of iTunes. Now I can't find any links for it in the store. I went to "help" and it said to go to the music store and follow the online instructions, but there are no in