Problem retrieving datetime SQL data

Hi All
My app is trying to retrieve data from a MSDE sql datetime field in this way:
DateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
Date fecha = rsServicios.getDate("fecha");
System.out.println(sdf.format(fecha).toString());But it returns me all dates with hours, mins and secs with zeros !!
How could I do to get the real data ?
Thanks in advance
J

But it returns me all dates with hours, mins and secs
with zeros !!
How could I do to get the real data ?
getDate method returns only Date and not the time
Use getTimeStamp() instead, which returns Timestamp object.
Timestamp ts=rs.getTimestamp();
Date d=new Date(ts.getTime());

Similar Messages

  • Problem Writing java.sql.Date to MS Access

    I have a relatively simple application that is for my own use (not distributed on an enterprise-wide basis). As I don't have an IT staff, I'm using a rudimentary Java front-end (v1.3.1) and a Microsoft Access backend.
    I seem to have trouble using INSERT/UPDATE statements with the MS Access Date/Time data type. Below is an example of code being used (id is defined as Text, amount is a Number and timestamp is Date/Time):
    conn = DriverManager.getConnection("jdbc:odbc:markets", "", "");
    conn.setAutoCommit(true);
    String sql = "INSERT INTO temp (id, amount, timestamp) VALUES (?, ?, ?)";
    PreparedStatement stmt = conn.prepareStatement(sql);
    String id = args[0];
    int len = id.length();
    java.sql.Date dt = new java.sql.Date(new java.util.Date().getTime());
    stmt.setString(1, id);
    stmt.setDouble(2, id.length());
    // I think the problem is here - the JDBC driver doesn't properly map dates to Access???
    stmt.setDate(3, dt);
    stmt.execute();
    stmt.close();
    conn.close();And I get the following error:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access
    Driver] Syntax error in INSERT INTO statement.
            at sun.jdbc.odbc.JdbcOdbc.createSQLException (JdbcOdbc.java:6879)
            at sun.jdbc.odbc.JdbcOdbc.standardError (JdbcOdbc.java:7036)
            at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect (JdbcOdbc.java:3065)
            at sun.jdbc.odbc.JdbcOdbcStatement.execute (JdbcOdbcStatement.java:338)
            at TestWritingDate.main(TestWritingDate.java:31) I'm virtually certain this is a translation problem with
    the java.sql.Date and the JDBC driver. But I can't seem
    to overcome this. Any help is DESPERATELY needed.
    Thanks.
    Matt

    That was it....thanks...didn't even consider that....perhaps I should start using class names that are already in use too :-). Thanks again...

  • Problem with the SQL Data Source (Essbase server in Unix Env)

    I too have the same problem.
    I have setup the Datasource for an Oracle db in the Essbase Server (which is on a Unix Box) using the Oracle Wire Protocol.I tested the ODBC connection in the Server and it connect with the credentials.
    But if i choose the same DSN in the EAS and try to connect i get the below error
    Error: 1021001 Failed to Establish Connection With SQL Database Server.
    I even downloaded a document from the Oracle site.. on the SQL interface in Essbase but i could not find the inst-sql.sh file to enable Essbase SQL Interface on the server. Is this required??
    I tried with both the User & System DSN on the server but no luck.
    Any help on this will be highly appreciated. Thanks in advance.
    Posting in a new thread since the old one is answered and no points available to score.

    It can depend on the version, it is different for version 11, further information :- How to define a relational data source in (odbc.ini) V11 Essbase?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Convert string into java.sql.Date

    Hi,
    I want to convert a date in string form into java.sql.Date to persist into the database column with Date as its datatype in Oracle. I'm trying as follows:
    import java.sql.Date;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    public class DateTest
    public static void main(String[] args)
    String strDate = "2002-07-16 14:45:01";
         System.out.println("strDate = "+strDate);
    Date aDate = null;
    try
    if(strDate != null && !strDate.trim().equals(""))
         SimpleDateFormat aSDF = new SimpleDateFormat();
         aSDF.applyPattern("yyyy-MM-dd hh:mm:ss");
         java.util.Date utilDate = aSDF.parse(strDate);
    System.out.println("utildate = "+utilDate);
         aDate = new Date(utilDate.getTime());
         aDate.setTime(utilDate.getTime());      
         System.out.println("aDate = "+aDate);
    catch (ParseException e)
    System.out.println("Unable to parse the date - "+strDate);
    catch (Exception ex)
    ex.printStackTrace();
    System.out.println("Caught Exception :"+ex.getMessage());
    It gives the output as :
    strDate = 2002-07-16 14:45:01
    utildate = Tue Jul 16 14:45:01 IST 2002
    aDate = 2002-07-16
    If I put this value into the database table, I can see only the date. Time part is missing. Is this the problem with java.sql.Date or Oracle datatype Date? Please help me asap.
    Thanks in advance.
    Regards,
    Rajapriya.R.

    If I put this value into the database table, I can
    see only the date. Time part is missing. Is this the
    problem with java.sql.Date or Oracle datatype Date?This is not a problem, this is the defined behaviour of the Date type. RTFAPI and have a look at Timestamp, while you're at it.

  • Please Help with sql.Date problem

    I have spent alot of time on what I thought would be an otherwise simple task, and I beleive I am close to completion but I need some much needed help. I have posted various forms of my code to try and acheive the solution but the responses received have been limited.
    I am trying to delete a record from a MS Access database where a Date/Time field in the database (Err_Date) equals a date entered by the user via a textbox.
    I finally have gotten the correct record to delete from the database, but what is very strange is that Tomcat is throwing a 'java.lang.NullPointerException' error. Then when I re-open the database the correct record is deleted.
    Here is my code:
    <%@page import="java.sql.*"%>
    <%@ page import="java.text.SimpleDateFormat"%>
    <%@ page import="java.util.Date"%>
    <%
    Connection con = null;
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:errorlog", "admin", "");
    catch(Exception e){
         out.println(e.getMessage());
    ResultSet rs=null;
    Statement stmt=null;
    try {
    stmt=con.createStatement();
    String end = request.getParameter("To");//FROM TEXTBOX
    java.text.SimpleDateFormat df = new java.text.SimpleDateFormat ("dd/MM/yyyy");
    java.util.Date d2 = df.parse(end);//CONVERT STRING TO UTIL DATE
    java.sql.Date date2 = new java.sql.Date(d2.getTime());//CONVERT TO SQL
    PreparedStatement stmnt = con.prepareStatement("DELETE FROM tblError WHERE Err_Date = ?");
    stmnt.setDate(1, date2);
    stmnt.executeUpdate();
    stmnt.close();          
    //CLOSE RESULT SET          
    rs.close();
         stmt.close();
    con.close();
    //CATCH EXCEPTIONS
    catch (SQLException e) {
         out.println(e.getMessage());
    %>

    well, in case anyone ever runs into a problem this stupid again the solution is as follows.
    the code to:
    1. retrieve date from text box
    2. covert string into util date
    3. convert util date into sql date
    4. delete from database
    is all correct.
    the problem is that I previously used String sql="SOME SQL DELETE" and then executed the result set, which of course I then had to close. This wasn't working so I switched to a Prepared Statement. I forgot to remove the 'rs.close()' statement in my code. So Tomcat was trying to close a result set that was never opened...

  • Problem with provider + MS SQL + Date

    Hi,
    I have a problem:
    (in mt database is datetime length 8, so I am insert:
    Date date = new Date();
    java.sql.Timestamp updateDate = new java.sql.Timestamp(date.getTime());only if I update date that was null in the database, I get this error:
    28/12/2006 13:34:13 org.jdesktop.dataset.provider.sql.SQLCommand getUpdateStatement
    WARNING: Problem with update SQL statement null
    28/12/2006 13:34:13 org.jdesktop.dataset.provider.sql.SQLCommand getUpdateStatement
    WARNING: null
    java.lang.NullPointerException
         at com.microsoft.sqlserver.jdbc.AppDTVImpl$SetValueOp.executeDefault(Unknown Source)
         at com.microsoft.sqlserver.jdbc.DTV.executeOp(Unknown Source)
         at com.microsoft.sqlserver.jdbc.AppDTVImpl.setValue(Unknown Source)
         at com.microsoft.sqlserver.jdbc.DTV.setValue(Unknown Source)
         at com.microsoft.sqlserver.jdbc.Parameter.setValue(Unknown Source)
         at com.microsoft.sqlserver.jdbc.Parameter.setValue(Unknown Source)
         at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(Unknown Source)
         at org.jdesktop.dataset.provider.sql.AbstractSqlCommand.prepareStatement(Unknown Source)
         at org.jdesktop.dataset.provider.sql.SQLCommand.getUpdateStatement(Unknown Source)
         at org.jdesktop.dataset.provider.sql.SQLDataProvider$2.saveData(Unknown Source)
         at org.jdesktop.dataset.provider.SaveTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    28/12/2006 13:34:13 org.jdesktop.dataset.provider.sql.JDBCDataConnection executeUpdate
    WARNING: Failed to execute update null
    28/12/2006 13:34:13 org.jdesktop.dataset.provider.sql.JDBCDataConnection executeUpdate
    WARNING: null
    java.lang.NullPointerException
         at org.jdesktop.dataset.provider.sql.JDBCDataConnection.executeUpdate(Unknown Source)
         at org.jdesktop.dataset.provider.sql.SQLDataProvider$2.saveData(Unknown Source)
         at org.jdesktop.dataset.provider.SaveTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Well then I guess you can't do that.
    This looks like a bug in org.jdesktop.dataset.provider.sql.SQLCommand getUpdateStatement
    So you'll have to talk to them about what it is doing. I can only guess from the stack trace that it is creating a statement and binding the existing values to it but that it is not set up to deal with nulls.
    So on second thought it may not be a bug but more of a thing that is impossible to do with that implementation. Either way you'll have to look at the org.jdesktop.dataset.provider.sql.SQLCommand getUpdateStatement code or providers of said code for answers.

  • "evdre encountered a problem retrieving data from the webserver"

    Hi
    We are using a big report which takes very long time to expand and sometimes we get the error message "evdre encountered a problem retrieving data from the webserver" when expanding the report, but not very often for most of our users. But we have one user who gets this error message almost every second time he expands the report. This user have a computer with same capacity as the rest of us, can there be some setting on the computer or in the client installtion the cause this problem?
    We are using BPC 5.1 SP 5
    /Fredrik

    Hi,
    This error occurs usually if we have huge data in combination of our dimensions.
    Even, if the selection of your memberset is not apt to the combination of the data present in the back end, you may encounter a data retrival error.
    regards
    sashank

  • Sql.Date problem

    Hi,
    I am using java.sql.Date and preparedStatement for SQL select query, something like
    : select app_id, entry_date, message from testTable where entryDate >= ? and entryDate <= ?
    for example i'am supplying date as yesturday's date and i want data where
    say: 24-Oct-2005 12:00:00AM to 24-Oct-2005 11:59:59PM, basically whole days data.
    <code>
    SimpleDateFormat formatter =
    new SimpleDateFormat("dd-MMM-yyyy", Locale.US);
    SimpleDateFormat formatter1 =
    new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss aaa", Locale.US);
    String new1 = formatter1.format(formatter.parse(dateStr));
    System.out.println("new1 : "+ new1);
    Date date = new Date(formatter1.parse(new1).getTime());
    long nextDate = date.getTime()+(23*60*60*1000);
    System.out.println("d: " + date);
    System.out.println("next: " + new Date(nextDate));
    </code>
    problem is this code giving me same outputs, whereas, i need to supply, different timings to the same date.
    Thanks to anyone who can help me.

    I think the easier way is to use Calendar.getInstance() to return a Calendar instance and then use the various set() methods to set the time to midnight or the second before midnight of the next day.
    See the API docs for java.util.Calendar.
    - Saish

  • Problem in converting util date format to sql date format

    im trying to convert util date to sql date...i'm getting the error msg as
    Error is : java.lang.NullPointerException
    Error Message : null
    i'm not bale to track the result...whatz the problem with this code?
    This fromDate value will be dynamically built, value will be
    fromDate="Tue Jul 15 00:00:00 IST 2003";
    java.util.Date xx=util.stringToDate(fromDate);
    java.sql.Date sqlD=null;
    sqlD.setTime(xx.getTime());
    System.out.println("sqld"+sqlD);

    I try this and it works:
    SimpleDateFormat simpledateformat = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", Locale.UK);
    String s = "Tue Jul 15 00:00:00 IST 2003";
    java.util.Date date = simpledateformat.parse(s);
    java.sql.Date sqlD=new java.sql.Date(date.getTime());
    System.out.println("sqld"+sqlD);
    Hope this helps.

  • Deduplication error: there was a problem retrieving data deduplication schedule

    Hi,
    After changing dedup schedule once we are receiving this error and not able to change it any more.
     there was a problem retrieving data deduplication schedule

    Hi,
    After changing dedup schedule once we are receiving this error and not able to change it any more.
     there was a problem retrieving data deduplication schedule
    Take a look @ PowerShell cmdlets for dedupe here:
    PowerShell dedupe cmdlets
    http://technet.microsoft.com/en-us/library/hh848450.aspx
    Of your interest are Remove-DedupeSchedule and New-DedupSchedule ones. Try removing set schedule
    you have now, making sure the status is "no jobs" and then create new schedule to see would it make the difference. 
    Good luck!
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Number data-type saving problem through PL/SQL

    hi,
    I am having a field in my table called "amount" with type number(17,3). I am facing some problem while saving the data through pl/sql developer.
    while i am inserting data like 123456789012.567 its working fine but when I am inserting 1234567890123.567 for amount field its now showing any error while saving, but actually its storing "1234567890123.570" in DB. Similar thing is happening when I was saving "12345678901234.567",actually its saving "12345678901234.600".
    Whenever I was getting for 17 digits it's rounding last 3 and for 16 its rounding 2.
    I am using oracle10g as DB server.
    please suggest how to solve this particular problem as i am stuck or the alternate ways...
    Thanks,
    Shouvik

    It is a display problem, not a storage problem. i'm not sure what the equivalent in PL/SQL Developer is, but this sqlplus example seems to replicate your stated issue.
    SQL> create table t (num number(17,3));
    Table created.
    SQL> insert into t values (123456789012.567);
    1 row created.
    SQL> insert into t values (1234567890123.567);
    1 row created.
    SQL> insert into t values (12345678901234.567);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> set numwidth 16
    SQL> select * from t;
                 NUM
    123456789012.567
    1234567890123.57
    12345678901234.6
    SQL> set numwidth 25
    SQL> /
                          NUM
             123456789012.567
            1234567890123.567
           12345678901234.567You need to expand the display width for numbers.
    John

  • SQL date problems

    I have an old sql statement which is centered around dates as a contraint. When I run it through Oracles software (MYSQL plus), I am returned the correct records. But when running I run it through my web-app, nothing is returned to me. I guess the JDBC driver will interpret the sql statement a little differently. I know the problem is with the clause dealing with the dates, but am unaware of how to resolve it. Is there a better way of comparing dates? I am looking to find dates greater than tommorow's date. Here it is:
    Thanks
    AND (b.aq_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.m_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.me_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.ec_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.cxr_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.hs_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.bp_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.ps_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.cd_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.other_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.ts_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.sal_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.ir_follw_dte < to_char(sysdate+1,'dd-mon-yy')
    OR b.br_follw_dte < to_char(sysdate+1,'dd-mon-yy'))

    This is far too Oracle centric.
    You'd be much better off using java.sql.PreparedStatement and let its setDate() method escape those Dates for you correctly:
    Calendar calendar   = new GregorianCalendar();
    java.util.Date tomorrow = calendar.add(Calendar.DAY_OF_YEAR, 1);
    java.sql.Date tomorrowAsSql = new java.sql.Date(tomorrow.getTime());
    String sql = "the rest of your query here"
    + "AND (b.aq_follw_dte < ?) "
    + "OR b.m_follw_dte < ?) "
    + "OR b.me_follw_dte < ?) "
    + "OR b.ec_follw_dte < ?) "
    + "OR b.cxr_follw_dte < ?) "
    + "OR b.hs_follw_dte < ?) "
    + "OR b.bp_follw_dte < ?) "
    + "OR b.ps_follw_dte < ?) "
    + "OR b.cd_follw_dte < ?) "
    + "OR b.other_follw_dte < ?) "
    + "OR b.ts_follw_dte < ?) "
    + "OR b.sal_follw_dte < ?) "
    + "OR b.ir_follw_dte < ?) "
    + "OR b.br_follw_dte < ?))";
    PreparedStatement statement = connection.prepareStatement(sql);
    statement.setDate(1, tomorrow);
    statement.setDate(2, tomorrow);
    // One setDate for each ? bind parameter
    ResultSet result = statement.executeQuery();Now you don't have to worry about how to escape Dates, and this code works with any database.

  • PreparedStatement.setDate(1,java.sql.Date x) problem

    I am using Sun JDBC-ODBC bridge to access MS SQL Server 2000. I have following statement:
    java.util.Date date = new java.util.Date();
    java.sql.Date expire_date = new java.sql.Date(date.getTime());
    PreparedStatement pstat = con.prepareStatement("update account set expire_date=? where userid=?");
    pstat.setDate(1,expire_date);
    pstat.setString(2,userid);
    When I ran the program, I got a SQLException error as
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional features not implemented.
    I have traced the problem happened in the statement pstat.setDate(1,expire_date). I use jdbc-odbc bridge from j2se 1.3.1.
    I appreciate any help.
    Thanks, Brian

    May I refer to a recent topic where I explained a lot about date conversion between JDBC and SQLServer?
    http://forum.java.sun.com/thread.jsp?forum=48&thread=241049
    Try how far this helps you, then ask more.

  • SQL Data Sync - error during sync. Unable to diagnose the problem.

    I have 2 SQL data sync groups setup
    First one does a 1 way sync from azure to local db. Sync's only 1 table.
    Second one does a 1 way sync from local db to the azure. Syncs 2 tables.
    After setting it up and getting a few sync errors I was able to figure out what's wrong by checking the logs and fixing the problems. It was all running fine for a while and now it broke down.
    I got a sync error every time sync is attempted - however this time I'm not able to fix anything because I don't have any visibility on what's wrong - when I click on the Log tab in the Azure Management portal it just stays blank - no details come up.
    I click [Logs] Wait spinner comes up 
    And then it looks like this: 
    Another detail worth mentioning is that the error only occurs for the Second sync group that I have.
    Here's what I've attempted so far
    I poked around the azure management portal to try to find another way of looking at the logs - looking for something like ftp access to the log file - couldn't find anything like that.
    I refreshed schema in the sync rules tab.
    Used the SQL Data Sync agent tool on the premise to do the ping operation. Restarted the sql data sync windows service.
    Made sure I have the latest SQL Data Sync Agent installed.
    I'm wondering what are my options from here...
    I'm close to trying to deleting and recreating the sync group... I'm not too comfortable doing this because I know there are some sql tables that get created in the local db to support the operation of the sync - so if I delete the sync group would that automatically
    drop those helper tables as well or would I have to drop those manually - If I do drop those then that will obviously brake the other sync group that works fin as well..
    Any advice is appreciated. Thanks

    hi,
    According to your description, it seems the issue is related to SQL Azure, I will move this thread to SQL Azure Discussions forums to get a better support.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sql Devloper 4.0.0.13 - problems with displaying user data types

    Hi,
    I have installed new version of sqldeveloper and have discovered some problems with displaying user data types. The data that is described as VARCHAR2 are displayed with ‘???’.
    The problem persist in table view, script output and exported files.
    My type is described as follows:
    create or replace TYPE "DPTY_ADRESA" AS OBJECT
      ID_DPSF_OPCINE                                         NUMBER,
      ID_DPSF_MJESTA                                        NUMBER,
      OPCINA                                            VARCHAR2(100),
      MJESTO                                            VARCHAR2(100),
      ULICA                                 VARCHAR2(200),
      BROJ                                   VARCHAR2(20),
      SPRAT                VARCHAR2(20),
      OSTALO                             VARCHAR2(100),
      CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
    add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
    when make select column from table that contains this type I get next results:
    CASE 1:
    SQLDeveloper Version 3.2.20.09; Build MAIN-09.87; JDK 1.6.0_43; Windows 7 64 bit
    Select:
    select id, adresalokacija
    from dptr_saglasnosti
    where id = 1;
    Result:
            ID ADRESALOKACIJA
             1 COMP.DPTY_ADRESA(124,4913,'TRAIK','TURBE','BABANA','3452','0',NULL)
    END CASE 1;
    CASE 2:
    SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_40; Windows 7 64 bit
    Select1:
    select id, adresalokacija
    from dptr_saglasnosti
    where id = 1;
    Result1:
    ID ADRESALOKACIJA
             1 COMP.DPTY_ADRESA(124,4913,'???','???','???','???','???',NULL)    
    But if I select one element it is displayed normal.
    Select2:
    select id, a.adresalokacija.opcina
    from dptr_saglasnosti a
    where id = 1;
    Result2:
    ID ADRESALOKACIJA.OPCINA
             1 TRAVNIK                  
    END CASE 2;
    I have tried this scenario on three different pc with same output.
    Pleas help me to get rid of the '???' in result.
    Best Regards,
    Omer

      I tried on SQLDeveloper Version 4.0.0.13; Build MAIN-13.80; JDK 1.7.0_45; Windows 7 64 bit; NLS setting is default
    all data can show,No ??? in result
    Test step as following:
    create or replace TYPE "DPTY_ADRESA" AS OBJECT
      ID_DPSF_OPCINE                                         NUMBER,
      ID_DPSF_MJESTA                                        NUMBER,
      OPCINA                                            VARCHAR2(100),
      MJESTO                                            VARCHAR2(100),
      ULICA                                 VARCHAR2(200),
      BROJ                                   VARCHAR2(20),
      SPRAT                VARCHAR2(20),
      OSTALO                             VARCHAR2(100),
      CONSTRUCTOR FUNCTION dpty_adresa RETURN SELF AS RESULT
    alter TYPE "DPTY_ADRESA" add MEMBER FUNCTION dajAdresu RETURN VARCHAR2 cascade;
    CREATE TABLE dptr_saglasnosti (
    adresalokacija        DPTY_ADRESA,
      id    number);
      INSERT INTO dptr_saglasnosti VALUES (
      DPTY_ADRESA (65,225,'Vrinda Mills', '1-800-555-4412','sss','aaaa','eeeee','attta'),1 );
    select id, adresalokacija from dptr_saglasnosti where id = 1;
    ID ADRESALOKACIJA
    1    HRCP.DPTY_ADRESA(65,225,'Vrinda Mills','1-800-555-4412','sss','aaaa','eeeee','attta')

Maybe you are looking for

  • ABAP OO:Optimization Rules Manual

    Hi Guys, I have a few month programming in ABAP OO, but I feel that sometimes the code of the programs can be improved. Anybody knows if there's a manual for optimization in OO, or a Manual that shows you the right path that we must follow in order t

  • Error calling stored procedure from MFC.

    Hello, I am using MFC to call a stored procedure written in PL/SQL, but when I make the call I get the next error in Spanish: "No se enlazaron columnas antes de llamar a SQLFetchScroll o SQLExtendedFetch", which more or less in English means: "No row

  • How can i find a lost ipod nano?

    how can i find a lost ipod nano?

  • Restoring system with Time machine

    Hi, Tried restoring with Command-R from an external Lacie HD, through TIME MACHINE, after having had my internal HD disk changed (in Apple Care). The initial 12+ hour process seemed ok, but it has now gone into a "loop" (I think) because the greay sc

  • Closing the applet window

    how to close the applet window using a button on the applet