Select *from - special character in datetime 'slash'

I have table with DateTime colun :
id dateTime
1 12/08/03 11:23:25,563563456345634563456
2 12/08/03 11:23:25,34333333
I select the rows that were created today , for example 2012-08-03
but when use :
select * from TEST_TABLE where DATETIME like '12/08/03'
i dont have any rows - I need replace '/' - slash
how to do it ?
Edited by: user8855885 on 2012-08-03 03:19
Edited by: user8855885 on 2012-08-03 03:20

Hi User,
Welcome to Forum !!!!!!!!
Why you are saving date in character format recommended, not to save date in character formats.
Here it is,
SELECT TO_DATE ('12/08/03 11:23:25', 'YY/MM/DD HH24:MI:SS'),
       TRUNC (TO_DATE ('12/08/03 11:23:25', 'YY/MM/DD HH24:MI:SS'))
  FROM DUAL;
  And,
Query:
SELECT *
  FROM your_table
WHERE TRUNC (datetime) = TRUNC (SYSDATE);Here TRUNC(SYDATE) give today's date. TRUNC function removes the time. So you can get the records created today.
Thanks,
Shankar

Similar Messages

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'β%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • Biztalk error if "&" special character is used from Oracle Database

    There is an error when system was received data form Oracle database. The data format is including "&"....etc special character. Becuase of the error appear between Oracle database and receive port. I can't do anything in Biztalk program to
    encode the message. Does any way to do encoding when biztalk receive data?
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'ECT.TOSToEDB.orcWorkingTable(7e2c77ec-adb6-5790-29ad-835ec8374c1d)'.
    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 8eb4cb36-82b2-4d34-9b45-64b8aba23758
    Shape name:
    ShapeId: 09bc980e-3040-4238-a838-f3606294effe
    Exception thrown from: segment 1, progress 84 Inner exception: An error occurred while parsing EntityName. Line 4, position 112.
    Exception type: XmlException
    Source: System.Xml
    Target Site: Void Throw(System.Exception) The following is a stack trace that identifies the location where the exception occured
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseEntityName()
       at System.Xml.XmlTextReaderImpl.ParseEntityReference()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
       at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at System.Xml.XmlDocument.LoadXml(String xml)
       at ECT.TOSToEDB.orcWokingTableCheck.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    For more information, see Help and Support Center at
    http://go.microsoft.com/fwlink/events.asp.

    There are 5 special characters which in xml   & < > "  '  if the Oracle fields contain any of those characters it will cause invaild xml.
    This can be solved at the oracle side be replacing the special characters by it's  html encode equivalent, so  & becomes &amp; , I think the best way to solve it
    is to make a custom pipeline component and translate the special characters there.
    There is my Send Port Properties. Do you mean the default biztalk pipeline component ("XML Receive") cannot translate any special characters?

  • Saving webi document from BOXI 3.0 in excel with special character

    Issue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
    This happens only with Mozilla, get correct file name in IE.
    Steps to Reproduce:
    1)Create a simple XI3.0 webi report through mozilla browser
    2)Save the webi report with special character name for e.g øäåýþ.
    3)Open the webi report and save it as excel or pdf file.
    4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
    5)When saving the save report through IE browser in excel or PDF  display correct report name øäåýþ in excel and PDf file.
    Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any  difference.
    Has anyone came across such type of issue?
    Whether this is limitation of Firefox or bug.
    Regards,
    Ketki Fadnavis

    Issue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
    This happens only with Mozilla, get correct file name in IE.
    Steps to Reproduce:
    1)Create a simple XI3.0 webi report through mozilla browser
    2)Save the webi report with special character name for e.g øäåýþ.
    3)Open the webi report and save it as excel or pdf file.
    4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
    5)When saving the save report through IE browser in excel or PDF  display correct report name øäåýþ in excel and PDf file.
    Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any  difference.
    Has anyone came across such type of issue?
    Whether this is limitation of Firefox or bug.
    Regards,
    Ketki Fadnavis

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Selecting only normal character data from column

    Hi,
    We have a table column which stores party names and this could consist of non english characters. Would anyone know how do we just select regular english character rows from the table using a select query and not include the rows which have non-english characters?
    Thanks

    There iare two points with the suggestion by Frank.
    First i think he missed an +
    and secondly it doesnt work for example with german umlauts.
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select 'dasssädsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    SELECT     *
    FROM     data
    WHERE     REGEXP_LIKE ( s
                  , '^[A-Za-z]+$'
    no rwos selected
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select 'dasssadsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    SELECT     *
    FROM     data
    WHERE     REGEXP_LIKE ( s
                  , '^[A-Za-z]+$'
    S
    dasssadsa
    (without umlaut)
    so perhaps you will give translate a try e.g.
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select '@dass äsadsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    select s
    ,  translate(
        lower(s)
        ,'@abcdefghijklmnopqrstuvwxyz1234567890 '
      ) t
    from data
    where
    length(
      translate(
        lower(s)
        ,'@abcdefghijklmnopqrstuvwxyz1234567890 '
    < length(s)
    S T
    SERPI!! GAB !!
    SE£ GRA £
    ARA%%& sa %%&
    @dass äsadsa @ä
    ara€ ssa € porjection is just for explanation purpose
    regards

  • Detect special character from a String

    Hello guys,
    Some of the files in unix box contain special characters . I need to strip these special character in the filename to underscore. however, I do not want to strip off special character like _ - ^ . @
    Pattern escaper = Pattern.compile("([^a-zA-z0-9_-^.@])");
    I couldn't strip off the caret. Appreciate any advice please. Thanks in advance!
    Cheers,
    Mark

    Hi Alice,
    I tried your suggestion:
         public static void main(String[] args) throws IOException {
              rename(args[0], args[0].replaceAll("[^a-zA-Z0-9\\\\/:@._^-]","_"));
         public static void rename(String from, String to) throws IOException{
              // File (or directory) with old name
              File file1 = new File(from);
              // File (or directory) with new name
              File file2 = new File(to);
              // Rename file (or directory)
              boolean success = file1.renameTo(file2);
              if (!success) { // File was not successfully renamed
                   System.out.println("failed to rename : " + file1);
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1~2.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1^2.txt
    failed to rename : C:\Apps\mud\12.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\[email protected]
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3mn.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3mn.txt
    failed to rename : C:\Apps\mud\1@2$-_3mn.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'n.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'^n.txt
    failed to rename : C:\Apps\mud\1@2$-_3m'n.txt
    C:\workspace\TestOnly\bin>java -cp . com.test.TestClass C:\Apps\mud\1@2$-_3m'^n.txtbut however, whenever I put in a caret in the filename, it always failed to rename. Appreciate your further advice please. thanks in advance!
    Cheers,
    Mark

  • How to discard the special character from field-Table.

    Hi
    In my data i am having a lot of SPECIAL CHARACTER also involved, I want to display only the consumer name (PURELY), is there any method/function module to discard the special character and display only the A-Z character as stored in DB.
    Gaurav

    if itab-field CA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    or
    if itab-field CP 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
    then do ur else calculation.
    else.
    delete itab.
    Edited by: tahir naqqash on Feb 17, 2009 4:27 PM
    Edited by: tahir naqqash on Feb 17, 2009 5:21 PM

  • Special Grant to use "Select * from Table(cast..."??

    Hi,
    I've recently created the types and function to use the Table(Cast(funtion) as type)). It works fine, and gives me the correct result. I've granted execute on the types and on the function to a role that is enabled for a user, but when the user tries to use the "select * from table(cast(function) as type))", he gets a "ORA-01031: Insufficient Privileges" error message. Is there any other grant that must be given to the role, so that the user can execute the select?
    Thanks in advance!
    Daniel

    Hi Kamal,
    I'm not sure what anonymous PL/SQL block means. When I (or the user) try to run the select, I enter all the information, i.e., the owners for the type and function: "select * from table(cast(a.my_function(my_argument) as a.my_type))". I'm trying to use SQLPlus at this time, and I have Oracle 8i.
    I didn't to explicitly grant execute to the user because that would go against some rules I have to follow... I'll se if I give it a try though!
    Thanks!

  • Getting special character while saving adobe form from portal

    Hi All,
    I am getting Special character while saving adobe form. I am using webdynpro java application, in which I am using download file UI element.We are facing this issue after support packs were implemented in staging system.
    Kindly advise.
    Regards
    Shashwat

    Hi,
    We have ABAP system as backend system seperately and Single sign on is configured.
    when we access the portal with domain name line http://hostname.domain/52000/irj/portal, we are able to access the adobe form which is develope on abap system without any issue.
    but our issue started when we are trying to access portal only with hostname as http://hostname:52000/irj/portal
    we are able to login to portal but when we are trying to open the adobe form we are getting error
    No switch to HTTPS occurred, so it is not secure to send a password
    Since you have configured SSL, I assume that this configuration is done with fully qualified hotsname. Hence the certificate is generated based on this hostname.
    Now when you access your portal without typing fully qualified hostname, system is unable to locate a relevant certificate. Hence it lands up with a message "No switch to HTTPS occurred, so it is not secure to send a password"
    Hope this answers your query
    Regards,
    Deepak Kori

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

  • Special character in some of the employee records

    Hi,
    I have found special character in some of the employee records which is causing some reports to error out. Our instance is configured for English language and these special characters are unrecognized by the application. I have attached some employee names with the special character below.
    Request you to please look into this and reply ASAP.
    ===
    Employee Number      Full Name
    1278     M_ü_ller-Seydlitz, Mrs Hilda Suzanne
    1009     Evas, Mrs Sîan* Elynda
    ===
    Regards
    Parvathi Arun
    +919840861075
    [email protected]

    first you need to create a database function like the one below.
    the query to identify those records is then the below:
    select full_name from per_people_x
    where is_not_valid_text(full_name) = 'N'
    you can use the function also to verify other fields like addresses and so on.
    the corrective action according to me should be a manual one, meaning open the form and update the names not compliant.
    thanks
    regards
    create or replace
    function is_not_valid_text (p_text in varchar2) return varchar2 is
    v_is_valid varchar2(100) := 'Y';
    v_length number := length(p_text);
    begin
    for i in 1 .. v_length loop
    if not ( -- allowed char
    ascii(substr(p_text, i, 1)) between 65 and 90 -- from A to Z
    or ascii(substr(p_text, i, 1)) between 97 and 122 -- from a to z
    or ascii(substr(p_text, i, 1)) = 32
    or ascii(substr(p_text, i, 1)) = 46
    ) then
    v_is_valid := 'N';
    exit;
    end if;
    end loop;
    return v_is_valid;
    end is_not_valid_text;
    Edited by: Giuseppe Bonavita on 10-Dec-2012 11:43

  • Error: Invalid dimension member with special character / in BPC NW 7.5 SP7

    Hi experts,
    We are encountering the following problem in our Financial Planning application.
    We are migrating our existing BPC solution from one server to another through backup and restore. The existing solution was on BPC NW 7.5 SP 5. The profit_centre dimension in the existing solutions has several member ids with special character '/' (forward slash). The dimension never threw an error when processed in the existing solution and there is planning transactional data against these member ids.
    While the entire configration , appset , files were successfully restored through UJBR on the new system (BPC 7.5 SP7) through UJBR (backup and restore), the masterdata could not be restored only for this Profit_centre (masterdata for other dimensions were processed successfullu). All the member ids with / are rejected for this dimension. The same error is thrown if processed through the admin client from the member sheet. 
    Error: Dimension member PC_FF/WS/NT is an invalid member ID
              Error in Admin module
    Is there any setting which need to be made to allow / character in member ids? Any suggestion to get around this problem would be much appreciated.
    Thanks
    Abhiman

    Hi Abhiman,
    Yes, you need to maintain the transformation file to correct all dimension member IDs. Can you please refer to the following link with a similar issue:
    conversion file formula not working
    Hope this helps.
    Rgds,
    Poonam

  • Special Character in Filename script - how do I escape it.

    Hello All. I'm attempting to call a file in sqlplus on a linux box. The file name has a special character.
    ex: i$_my_script.sql
    I've attempted to use
    @i$_my_script.sql
    @i\$_my_script.sql
    @i\\$_my_script.sql
    @"i$_my_script.sql"
    @'i$_my_script.sql'
    @'i\$_my_script.sql'
    All to no avail. I could have sworn I'd called a similar file with $ in the filename before but now I can't get it to work. Preference would be to no have a special character in the filename ... but the file is coming in from a source I don't have control over. I could rename the file but the file resides in a source control system and I'd prefer not to have to rename it every time I want to compile it.
    Thanks in advance.
    edit<<Also as a note I can see the file in sqlplus by sending ls to the command line as follows:
    SQL> ! ls i\$_my_script.sql
    which returns
    i$_my_script.sql
    Edited by: Kennedy on Sep 6, 2011 1:25 PM

    another workaround for the same is use double slash \ \ before special character to avoid such issue
    Regards,
    CA
    shockwave flash chrome
    clear flash cookies
    html blinking text
    keyboard on screen

Maybe you are looking for

  • How to run macbook pro FASTER

    I just want to know how I can run my macbook pro faster. Seems like lately my macbook freezes and I have to force shutdown it. I use my macbook more for work and school stuffs, so I open lots of documents for research, maybe this caused it to run slo

  • USB 2.0 probl

    Hi i've got a Muvo 4gb and i've just got a new computer with xp home edition SP2 and its got usb2 ports. When i connect my mp3 player to it its recognized as a muvo but as i try to install it nothing happens, windows says drivers missing or something

  • I lost the email containing the gift card information that Apple sent me. Can I get another email?

    I accidentally deleted the email for the gift card information. I have not used it yet. Can apple send me the email again?

  • How to define financial year to start in November and end  in October

    Hi, I am trying to build a report with following columns Resort, Month, YTD Rooms, LY YTD Rooms. Filter on Year==2010 The above measures YTD=Year to date rooms LY YTD = Last Year Year To Date Rooms The results would be AF, Jan-10, 300, 350 AF, Feb-10

  • IPhone 5 slidind on or off glitch

    Hi I have an iphone5 with os 6.1.4 and I see a very weird issue with the settings, especially over top right corner of the screen. Everytime when I go to settings to turn anything on or off I have to tap or slide 10 to 20 times, this is more prominen