Sql syntax for converting a long datatype value in to a integer datatype value

I have to make a sql query where in i have a value of long datatype and i want to convert it into integer datatype value
null

It would have helped if you could have posted sample data.
now my requirement is to calculate the difference in hours between the start time and end time.Assuming you want the difference in time irrespective of the dates and the time is stored like HH24:MI:SS format, you could try something like:
SQL> WITH test_tab AS
  2       (SELECT '09:12:33' start_time, '12:30:33' end_time
  3          FROM DUAL
  4        UNION ALL
  5        SELECT '09:12:33' start_time, '14:12:33' end_time
  6          FROM DUAL)
  7        -- end of test data
  8  SELECT end_time, start_time,
  9         TRUNC (  (  TO_DATE (end_time, 'HH24:MI:SS')
10                   - TO_DATE (start_time, 'HH24:MI:SS')
11                  )
12                * 24
13               ) diff_in_hours
14    FROM test_tab
15  /
END_TIME START_TI DIFF_IN_HOURS
12:30:33 09:12:33             3
14:12:33 09:12:33             5
2 rows selected.Hope this helps,
Regards,
Jo

Similar Messages

  • What is the proper SQL syntax for dates input as variable

    Hello,
    I am working on an ASP JavaScript page that requests totals
    from an Access database for a specific date range. I can write the
    SQL statement to query the DB and get the results I need using the
    WHERE statement below.
    ...WHERE LABOR_DATE BETWEEN #7/15/2006# AND #7/18/2006# GROUP
    BY [LABOR].[JOB_NUMBER_NAME]
    I have another page that I want to pass two variables in
    Dreamweaver specifying the date range varBeginDate and varEndDate
    and query the database using the date range input by the user.
    What is the correct syntax for replacing the actual dates in
    the example above with my variable values?

    Short answer - you can't. There's no automatic link between file paths and mounting servers. There are lots of valid reasons for this (e.g. preventing malicious links from automatically opening files from remote servers), but you can get there in a controlled environment.
    You can configure Automounts on any directory. That way whenever any application tries to access a particular path the OS will automatically mount the directory, but it needs to be told in advance which directories (and which servers) to mount.
    For example, if you'd configured your iTunes Library to be saved at /mnt/itunes and it's served from afp://mediaserver.your.net/path/to/itunes you would configure an automount to mount the AFP server at /mnt/itunes.
    Since its an automount, the OS wouldn't mount the server until some process tried to read /mnt/itunes.
    There are several ways of specifying automounts, and for each there are several tutorials online that walk you through the process. Try Mike Bombich's site for a starter.

  • SQL Syntax for Access database

    This pertains to LV only due to the fact that LV requires a slightly different syntax for SQL statements for use with Access than what you will see in the Access Queries SQL view.  For instance, I discovered that if you use a  ?  for a character placeholder  (can be any single character) in Access, you need to use an  _  (underscore)  for this feature.  I also discoverd that you use a % sign instead of an *  (asterisk) for any number of characters.
    The lat thing I am having trouble with is specifying a range of characters that could be in a certain position in the text field.  For instance, if the first character can be only an alpha between  A and Z, and the next two characters can be numbers anywhere from 1 to 12,  I would use   LIKE "[A-Z][1-12]*"      In LV, the double quotes are are replaced with single quotes but I cannot figure out what to replace the brackets with. 
    The brackets do not return a syntax error but also do not return any results that should fit the pattern.
    I have tried parenthesis, double quotes, using a TO in place of the dash, etc.
    Any input on this is very much appreciated.
    Doug
    I guess sometimes writing the problem out helps one deduce the answer by taking a closer look at what has been tried and what has not.
    So  LIKE "[A-Z][1-12]*"   in Access will be   LIKE ('[A-Z][01-12]%')  in LV.    I hadn't tried the pecent sign in place of the asterisk using the brackets.    Too bad this stuff isn't spelled out in detail somewhere.
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

    Thanks Danubio for the links.  The one for the SQL utility may be helpful as I go forward.
    Mike,  yes I am using the connectivity toolkit.  It's what I cut my teeth on and up to this point, has not caused me any issues.   I rarely make changes after implementation but if I do, the use of typedef's keeps it pretty painless.  A brief read on the doc included in your referenced zip file confirms there are alternate methods to talks to the database tables  (I am not a one table programmer).  When time permits, I will do some trials and if warranted, will try some of your techniques at some point.  Simply not enough time currently.
    As I posted intially, I actually solved my problem before there were any replies and included my solution in the first post.  Why there is a syntax difference going from LV to an mdb is an unknown to me but it exists nonetheless.
    Thanks for the input on this
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

  • SQL Syntax for hour/date range in Query

    Hi
    I am trying to set up an query for sales order documents procesed in the last 30 minutes to be set as an alert to be run every 30 minutes to the sales manager.  I am having difficulty getting the syntax for the last 30 minutes
    Any suggestions?
    David

    hi,
    I'm not sure query is correct,but u can modify it futher to get correct one.
    SELECT T0.DocNum, T0.DocDate, T0.CardName, T0.DocTotal FROM ORDR T0 WHERE DateDiff(dd, T0.DocDate ,getdate()) = 0 and
    DateDiff(Minute,T0.DocTime,' ') <= 30
    Jeyakanthan

  • PL/SQL Solution for Converting Long to VarChar2

    I recently had to convert a bunch of text stored in Long fields to a new VarChar2(2000) field in the same table.
    As you know if you've ever tried, you can't use a basic SQL the update statement will not do this, e.g. update table1 set field2 = field1 (where field2 is VarChar(2000) and field1 is Long) fails as does update table1 set field2 = substr(field1, 1, 2000).
    Interestingly PL/SQL's implementation of SubStr does work with Long fields. I was able to put together the following anonymous PL./SQL block to accomplish the task (msgtext is varchar(2000), msgtext2 is Long):
    DECLARE
    CURSOR message_cur
    IS
    SELECT ROWID, msgtext, msgtext2
    FROM tlrcmmessages
              FOR UPDATE;
    message_rec message_cur%ROWTYPE;
    BEGIN
    OPEN message_cur;
    LOOP
    FETCH message_cur
    INTO message_rec;
    EXIT WHEN message_cur%NOTFOUND;
    UPDATE tlrcmmessages
    SET msgtext = SUBSTR(message_rec.msgtext2, 1, 2000)
    WHERE CURRENT OF message_cur;
    END LOOP;
    CLOSE message_cur;
    END;
    I hopes this helps others out there in similar circumstances.
    Good luck,
    Rob Bratton, Bratton Enterprises

    Oracle strongly recommends to convert LONG fields into CLOB:
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adfnstyp.htm#429091
    Rgds.

  • SQL syntax for expert little help Access 2013

    Hi
    working example SQL local machine
    strData= "SELECT DISTINCT Detail, FamCode as Fam FROM Mat_Family ORDER BY FamCode" 
    cmbMatFam.RowSource=strData                                                                                                                                                                             
    working example SQL server machine (other computer)           
    Public Const ServerConnectionWith_RawMaterial_LV
    As  String=  
     "[ODBC;Description=Live;DRIVER=SQLServer;SERVER=SERVER;UID=Name;PWD=Password;DATABASE=RawMaterial_LV]." 
    strData= "SELECT DISTINCT Detail, FamCode as Fam FROM " &
    ServerConnectionWith_RawMaterial_LV & "Mat_Family ORDER BY FamCode"
    cmbMatFam.RowSource = strData
    working example SQL local machine
     strData = "SELECT Material_M.M_Code, Material_M.Family_Code, ISNULL(z_TotalBars.Bars, 0) AS tBars, ISNULL(z_TotalRes.rBars, 0) AS rBars, "
          strData = strData & "ISNULL(z_TotalBars.Bars, 0) - ISNULL(z_TotalRes.rBars, 0) AS Bal, Material_M.Material_Fam, Material_M.Type, Material_M.Series, "
          strData = strData & "Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density, Material_M.cPound_Ft, Material_M.cPrice_Pound,"
          strData = strData & "Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date , Material_M.Description "
          strData = strData & "FROM Material_M LEFT OUTER JOIN z_TotalRes ON Material_M.M_Code = z_TotalRes.M_Code LEFT OUTER JOIN "
          strData = strData & "z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Code "
          strData = strData & "WHERE (Material_M.Family_Code = '" & cmbMatFam.Column(1) & "') AND (ISNULL(z_TotalBars.Bars, 0) > 0)"
      Form_frmMaterialLookup.RecordSource = strData
    NOT working example SQL server machine (other computer)  ??????
     strData = "SELECT Material_M.M_Code, Material_M.Family_Code, ISNULL(z_TotalBars.Bars, 0) AS tBars, ISNULL(z_TotalRes.rBars, 0) AS rBars, "
          strData = strData & "ISNULL(z_TotalBars.Bars, 0) - ISNULL(z_TotalRes.rBars, 0) AS Bal, Material_M.Material_Fam, Material_M.Type, Material_M.Series, "
          strData = strData & "Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density, Material_M.cPound_Ft, Material_M.cPrice_Pound, "
          strData = strData & "Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date , Material_M.Description "
          strData = strData & "FROM  " &
    ServerConnectionWith_RawMaterial_LV
    & "Material_M LEFT OUTER JOIN z_TotalRes ON Material_M.M_Code = z_TotalRes.M_Code LEFT OUTER JOIN "
          strData = strData & "z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Code "
          strData = strData & "WHERE (Material_M.Family_Code = '" & cmbMatFam.Column(1) & "') AND (ISNULL(z_TotalBars.Bars, 0) > 0)"
      Form_frmMaterialLookup.RecordSource = strData
    Error Message
      Syntax error (missing operator) in query expression 'Material_M.MCode= z_TotalRes.M_Code LEFT OUTHER JOIN z_TotalBars ON Material_M.M_Code = z_TotalBars.M_Cod
    Usually I just add                   "
    & ServerConnectionWith_RawMaterial_LV & "                                              
    to a SQL statement and it works,but not this time
    (Tables  Material_M,         z_TotalRes,             z_TotalBars             are in RawMaterial_LV
    Database)
    Appreciate any suggestion Thanks

    parenthesis did the job, now adding
    "WHERE (ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')"
    Tested working Query
    SELECT Material_M.M_Code, Material_M.Family_Code, Material_M.Material_Fam, Material_M.Type,
    Material_M.Series,
    Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density,
    Material_M.cPound_Ft, Material_M.cPrice_Pound,
    Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date
    , Material_M.Description
    FROM
    ([ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Deco2014$;DATABASE=RawMaterial_LV].Material_M
    LEFT OUTER JOIN
    [ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalRes
    ON Material_M.M_Code = z_TotalRes.M_Code)                                                                                            
    LEFT OUTER JOIN
    [ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalBars
    ON Material_M.M_Code = z_TotalBars.M_Code
    Not working Query
    SELECT Material_M.M_Code, Material_M.Family_Code, Material_M.Material_Fam, Material_M.Type,
    Material_M.Series,
    Material_M.Specific, Material_M.Hardness, Material_M.BarLength, Material_M.Density,
    Material_M.cPound_Ft, Material_M.cPrice_Pound,
    Material_M.cPound_Bar, Material_M.cPrice_Bar, Material_M.cPrice_Date
    , Material_M.Description
    FROM
    ([ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Deco2014$;DATABASE=RawMaterial_LV].Material_M
    LEFT OUTER JOIN
    [ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalRes
    ON Material_M.M_Code = z_TotalRes.M_Code)                                                                                            
    LEFT OUTER JOIN
    [ODBC;Description=Live;DRIVER=SQL Server;SERVER=DSERVER;UID=Super;PWD=Password;DATABASE=RawMaterial_LV].z_TotalBars
    ON Material_M.M_Code = z_TotalBars.M_CodeWHERE (ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')
    Message Error
    Wrong number of arguments used with function in query expression '(ISNULL(z_TotalBars.Bars, 0) > 0) AND (Material_M.Family_Code = 'BZ')
    Works this way
    WHERE (z_TotalBars.Bars > 0) AND (Material_M.Family_Code = 'BZ')

  • SQL syntax for querying Active Directory group membership

    Post Author: cantrejj
    CA Forum: Data Connectivity and SQL
    I've established a connection to Active Directory through Crystal Reports XI. Now I need to write an SQL select statement to return all computer accounts and their group memberships. My statement returns all the computer accounts in the target OU, but when I add the memberOf field to my report everything goes blank. What am I doing wrong? I've included below my query statement and would welcome any suggestions...******************************************Select CN, memberOfFrom 'LDAP://OU=Managed Accounts, OU=Central Valley Service Area, DC= root, DC=sutterhealth, DC=org'where ObjectClass='computer'********************************************

    No ERRORs, no PANICs:
    # grep -i error /var/log/samba/log.smbd
    # grep -i panic /var/log/samba/log.smbd
    # grep -i error /var/log/samba/log.smbd.old
    # grep -i panic /var/log/samba/log.smbd.old
    #

  • Syntax for existing function-based index

    Hi:
    I am on 10.2.0.3.
    Listed below is the list of indexes and index columns on one of the tables. Aparantly one of the columns (SYS_NC00220$ ) is in reality a function-based index.
    Anybody knows how to get SQL syntax for this index? TIA.
    INDEX_NAME UNIQUENES COLUMN_NAME COLUMN_POSITION
    PS0BI_HDR NONUNIQUE BILL_TO_CUST_ID 1
    PS0BI_HDR NONUNIQUE BUSINESS_UNIT 2
    PS0BI_HDR NONUNIQUE SYS_NC00220$ 3
    PS1BI_HDR NONUNIQUE BILL_STATUS 1
    PS1BI_HDR NONUNIQUE BUSINESS_UNIT 2
    PS1BI_HDR NONUNIQUE SYS_NC00220$ 3
    PS2BI_HDR NONUNIQUE CONTRACT_NUM 1
    PS2BI_HDR NONUNIQUE BUSINESS_UNIT 2
    PS2BI_HDR NONUNIQUE SYS_NC00220$ 3
    PSABI_HDR NONUNIQUE INVOICE 1
    PSABI_HDR NONUNIQUE BILL_TO_CUST_ID 2
    PSABI_HDR NONUNIQUE BUSINESS_UNIT 3
    PSABI_HDR NONUNIQUE BILL_STATUS 4
    PSBBI_HDR UNIQUE PROCESS_INSTANCE 1
    PSBBI_HDR UNIQUE BUSINESS_UNIT 2
    PSBBI_HDR UNIQUE INVOICE 3
    PS_BI_HDR UNIQUE BUSINESS_UNIT 1
    PS_BI_HDR UNIQUE SYS_NC00220$ 2

    query user_ind_expressions and look for COLUMN_EXPRESSION.
    this will give you expression.

  • Oracle access sql syntax

    Hi,
    I am migrating access database to oracle 9i. Do you know of any changes to access sql syntax for it to use oracle backend?

    Very general question. It of course depends on the SQL you use. They are not 100% compatibile. The workbench will create the necessary link tables on your behalf, but you may need to update the SQL in you Access application code. Also you might have to tune your access application to work better in a client/server mode, e.g. if you where doing a join of two tables you would want that to occur on the server not on the client. This depends how you interface/bypass the jet engine. These issues are common whether the backend is Oracle or SQL Server for that matter.
    This should become obvious during your testing.
    Donal

  • Java.sql.SQLException: Cannot convert value

    I have a database table - name is client. It has one field with TimeStamp Datatype.
    I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586.
    create table client (
    MODIFIED timestamp(14)
    while I am doing select MODIFIED from client that time I am receiving 00000000000000.
    So It has 00000000000000 value in databse.
    Now I am getting this value using ResultSet. for that
    I have a one Client Object class name is GenericClient
    public class GenericClient {
    private java.util.Date _modified;
    public java.util.Date getModified() {
    return _modified;
    public void setModified(java.util.Date newVal) {
    this._modified = newVal;
    In my database processing class I am getting database value and set that value in setModified(java.util.Date newVal).
    like
    private Client decodeRow(ResultSet rs) throws SQLException {
    GenericClient obj = new GenericClient();
    obj.setModified(rs.getTimestamp(1));
    return obj;
    So at obj.setModified(rs.getTimestamp(1)); line I am received error message
    java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
    Please guide me why I am receiving the above error.
    Thanks
    Amit

    Please find some more information from my side
    1) I am passing Timestamp Object
    2) I am using PreparedStatement
    3) code
    Table : client
    create table client (
         MODIFIED timestamp(14)
    );Bean Class
    public class GenericClient {
         private java.util.Date _modified;
         public java.util.Date getModified() {
              return _modified;
         public void setModified(java.util.Date newVal) {
              this._modified = newVal;
    }Method - which is fired error
    private Client decodeRow(ResultSet rs) throws SQLException {
         GenericClient obj = new GenericClient();
         obj.setModified(rs.getTimestamp(1));
         return obj;
    }3) Error Stack
    ==========
    java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
            at com.mysql.jdbc.ResultSet.getTimestampFromString(ResultSet.java:5538)
            at com.mysql.jdbc.ResultSet.getTimestampInternal(ResultSet.java:5566)
            at com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:5219)
            at com.ksea.manager.ClientManager.decodeRow(ClientManager.java:463)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:266)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:221)
            at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:203)
            at com.ksea.manager.ClientManager.loadByUsername(ClientManager.java:53)
            at com.ksea.nt.DBSynch.synchEmployees(DBSynch.java:83)
            at com.ksea.nt.DBSynch.synchAll(DBSynch.java:35)
            at com.ksea.nt.DBSynch.main(DBSynch.java:168)4) db Info
    =======
    I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586.

  • Converting XPATH to SQL syntax?

    HI, all
    I am looking for a third party tool to convert XPATH syntax to SQL syntax?
    XPATH is primary syntax to retrieve and locate data in XML structre, while SQL is the stand syntax to operate data in RDBMS. Please assume I have a way to map XML data to RDBMS.
    Thanks in advance!
    Tao
    2002/11/15

    Did you ever find a solution?????... that�s exactly what I�m trying to do. Any help would be appreciated. Theres like no information on this stuff. Thanks
    bpfl

  • Wow, DB2 for LUW 9.5 copycatted almost all the Oracle SQL syntax even inclu

    A list of the add-ins per my memory:
    1) DUAL;
    2) NVL()
    3) DECODE()
    4) START WITH/CONNECT BY PRIOR/sudo column LEVEL for tree structure SQL that prior DB2 9.5 could not do it in SQL while Oracle does it by just one simple SQL
    5)(+) for outer join
    6)TO_CHAR()/TO_DATE()/...
    7)LPAD/RPAD that might be added in DB2 9 if I did not remember wrong
    8)Drop a cloumn from a table
    I worry that IBM may get law suit by Oracle?

    I actually take it in a light way. I just wonder how
    come DB2/UDB 9.5 going so far that it even offers the
    outer join operator (+) which is I believe Oracle's
    unique syntax. It's not in any standard, right?
    Let' just say they want Oracle's business badly not vise versa .
    Some of the features you listed that are 'better' than Oracle are questionable
    >
    1) The way to handle LOB objects that Oracle needs to
    the built-in package while DB2 just uses regular SQL
    which impressed me a lot.You can imagine the LOB object can be handled by regular SQL is not so Large. What kind of operations you want to use regular SQL to handle anyway? select, update, insert?
    2) VALUES()
    It can hold consecutive row and columns for inserting
    and function as SELECT...INTO too.Not sure exactly what this mean, an example will be nice.
    3) OLD/NEW/FINAL TABLE();
    e.g., select ... from OLD TABLE (DELETE FROM ...)
    select ... from NEW/FINAL (INSERT INTO ... or
    UPDATE ... INCLUDE...SET...)Same as above
    4) INCLUDE keyword in UPDATE statementSame
    5)CASE does offer more comparing than DECODE()Might need some approve
    6) The empty string '' which is not NULLDon't Oracle have it the same way?
    .........

  • How to dynamically create sql statement for Defaulting Segment Values?

    Hi,
    Navigation:
    1) Descriptive/Segments
    2) Query for DFF to be modified
    3) Uncheck “Freeze Flexfield Definition”
    4) (B) Segments
    5) Segments Summary form opens
    6) (B) open - Segments form opens
    Now, here I want to specify Default type as "SQL Statement" and in the default value field I want to use SQL statement with parameters (to evaluate the default value).
    The parameters should be pass at runtime from the form in which we have this DFF. The parameters value should be one of the values which get evaluated at runtime in the form window.
    Please suggest how we can achieve this?
    Or is there any alternative to achieve this?
    Thanks!!
    Regards,
    Narender
    Edited by: Narender Singh on Mar 30, 2010 7:47 AM
    Edited by: Narender Singh on Mar 30, 2010 7:48 AM

    Jason,
    it is possible, though not so simple as with a report.
    What you need to do is to create a pipelined function, that returns your date and count data. This pipelined function can be the base of a pseudo-table, which can be used in a select. For the pipelined function you need to define types for one row and a table to define the return-type for your function:
    create or replace type calendar_row as object (date_time date, description varchar2(250));
    create type calendar_table as table of calendar_row;
    Then you can create the package with the function:
    ================================================
    create or replace package dyn_calendar is
    procedure set_query(i_query in varchar2);
    function view_source return calendar_table pipelined;
    end;
    create or replace package body dyn_calendar is
    v_query varchar2(100) := null;
    procedure set_query(i_query in varchar2) is
    begin
    v_query := i_query;
    end;
    function view_source return calendar_table pipelined is
    TYPE cursor IS REF CURSOR;
    c_cal cursor;
    v_date_time date := null;
    v_description varchar2(100) := null;
    r_cal calendar_row;
    begin
    open c_cal for v_query;
    fetch c_cal into v_date_time, v_description;
    loop
    exit when c_cal%notfound;
    r_cal := calendar_row(v_date_time, v_description);
    pipe row(r_cal);
    fetch c_cal into v_date_time, v_description;
    end loop;
    return;
    end;
    end;
    ================================================
    Now you can set query in a PL/SL region before the calendar:
    dyn_calendar.set_query(SELECT count(*), ' || :P8_SOURCE_DATE || ' FROM ' || :P8_SOURCE_TABLE || ' GROUP BY ' || :P8_SOURCE_DATE);
    and you can base your calendar on the query:
    select * from table(dyn_calendar(view_source))
    Good luck,
    Dik

  • Function modules for converting Char value to hexadecimal value

    Hi All,
    Function modules for converting Char value to hexadecimal value.
    Thanks in advance

    Hi,
    use this function module:
    <b>RSS_UNIQUE_CONVERT_TO_HEX</b>
    regards
    Debjani
    Rewards point for helpful answer

  • Syntax for calling html page in PL/SQL package

    Hi,
    I'm trying to call html page (stored on server) in my pl/sql package!
    I have already create html page in pl/sql package code and it's works fine.
    Now create better html page (interface design) and stored on server. I would like to call that stored html page in my pl/sql package.
    What is syntax for calling html page in PL/SQL or could you suggest me some literature.
    In first option I had created ces and stored it on server. Then I call it in pl/sql package like htp.p('<link rel="stylesheet" href="\download\table_style.css" type="text/css">');
    I try someting like that for calling html page but it doesn't works.
    htp.p('<link rel="form" href="\download\interface.htm" type="text/html">');
    Does anyone know syntax for calling html page in pl/sql?!?
    Thanks!

    hello
    I normally use htp.anchor(URL,linkname);
    it works
    ammar sajdi
    www.e-ammar.com/Oracle.htm

Maybe you are looking for

  • Problem with zoom in Photoshop CS6

    Hello I've got problem with new(?) feature in Photoshop CS6. When I'm working on my project and have for example 150% zoom and I want to move workspace with SPACE+LMB. In my previous version (CS3) I can do this without problem but know Photoshop show

  • Discoverer Report Requirements

    Hi I am fairly new to Portal and currently looking at implementing it for a client using Portal v 10.1.4.1 and AS 11.5.10.2. Currently I am gathering requirements and one of these is to allow the users to display a number of Discoverer reports. At pr

  • Can someone please help me with scanning with Photoshop elements 13?

    I have been scanning pictures with no problem with Elements 13 but all the sudden any picture I try to scan it tells me "Nothing imported File or Folder to import did not contain any supported file type or file already exists in catalog."  I know the

  • Register 2 purchase contidions with different currency

    Hello All, In our project we are facing to a big issue with different currencies in the PO conditions. An example of the situation in the PO is the following (but should be different currencies, not always the same currency for the same condition):  

  • Intermittent screen distortion - entire screen washed out

    Intermittently, my entire screen will go a yellow/orangy type color - i can still make out the screen contents, but everything is slightly distorted or blurry and hard to make out. Most times, it goes away after a minute or two, or repeated restarts