a date column, with timestamp... How to remove the timestamp

Hello

I have a table name WRESTLING, with one of its fieldnamed DATE, using the DATE data type.
The date format incudes timestamp, can someone help me how to remove the timestamp part.
I want only the part of date only. I tried this:

Update DATE is to_char(date,'DD-MON-YYYY') set of CATCH;.
but the result of all the date inside the table always have timestamp.

can I use this:
Update DATE is to_date(date,'DD-MON-YYYY') set of CATCH;.
and still the same result.

Can anyone advice on this? pls.
Thank you

user9353110 wrote:
Thank you very much.. If this is the case, we can remove the timestamp when creating view for this table?

No, you can never remove the component "hour" of a DATE.

If you do not want to display a date in time (display purposes only!), use TO_CHAR to "transform" the DATE to a string with the format mask

SQL> alter session set nls_date_format = 'dd-mm-yyyy hh24:mi'
  2  /

Session altered.

SQL> select sysdate
  2    from dual
  3  /

SYSDATE
----------------
17-03-2010 09:28

SQL> select to_char (sysdate, 'dd-Mon-yyyy')
  2    from dual
  3  /

TO_CHAR(SYSDATE,'
-----------------
17-Mar-2010

SQL> select to_char (sysdate, 'yyyy-MON-dd')
  2    from dual
  3  /

TO_CHAR(SYSDATE,'
-----------------
2010-MAR-17

SQL> 

NOTE: the example of last two are not DATEs! They are STRING

Tags: Database

Similar Questions

  • How to remove the author's name and/or date of blogsite summary

    Hello

    Can someone help me please find where and how to withdraw the name of the author of the summary blogsite?

    I don't want any author's name listed, just the title linked blog and the date of publication.

    Or, is it possible to have the related title, with 50 words of the displayed article, but no name of author or creation date?

    I thank very you much in advance!

    I figured out how to remove the CSS author (.blogsitesumary duration-date {display: none}, but any attempt to change via CSS does not work.)

    For example, I can't create more space between the title and the date, or list items.

    Also, I would still add the first words of the post.

  • How to remove the extra space of oracle database column

    How to remove the extra space of oracle database column. I would like to clean up the column in the database by deleting the extra space is entered by the dataentery people.

    When I run the query:
    SELECT
    ROWID, C.CODETABLE_ID, C.CODEVALUE_ID, C.DESCR, LENGTH (C.CODEVALUE_ID).
    C.OBSOLETE_DT, C.RECORDSOURCE, C.CREATED_DT,
    C.CREATEDBY, C.LASTUPDATED_DT, C.LASTUPDATEDBY
    OF CODEVALUE C
    Where LENGTH (C.CODEVALUE_ID) > 6

    the data type is varchar2 and I would get rid of the any extra blank space added to the column. in my case, if the length is greater than 6

    Hello

    user452051 wrote:
    Thanks for the reply. Why should I have this line?

    AND codevlaue_id! = TRIM (codevalue_id) - see note below
    ;

    I just changed my post when you posted this. The explanation is there now:

    Frank Kulash wrote:
    ...
    The condition "codevlaue_id!" = TRIM (codevalue_id)"does not change the results of everything, but it can make the most effective statement if there are lines where codevalue_id is on 6 characters long, but contains no additional space. It will prevent the triggers from firing and redo the data generated.

  • I need to know how to remove the most recent version of Firefox. I JUST downloaded tonight and my computer does not have this edit bar little to work with, so I can download the reader good Adobe and my internet was screwed up ever since I downlo

    I need to know how to remove the most recent version of Firefox. I JUST downloaded tonight and my computer does not have this edit bar little to work with, so I can download the reader good Adobe and my internet was screwed up, since I downloaded the new version of Firefox. I want just the old version of this back because I can't download the Adobe stuff which is necessary to protect my computer against hackers apparently not. It would have been nice to know he had a problem with the new update of Firefox BEFORE I downloaded it. I have Vista, which is usually a problem with Adobe and Firefox. I don't seem to be able to run a lot of Adobe at all on my computer because of the Vista.

    This has happened

    Each time Firefox opened

    http://support.Mozilla.com/en-us/KB/installing+a+previous+version+of+Firefox

  • How to remove the data files of cRIO

    Please forgive my ignorance, but I don't see how to remove the old a cRIO data files.  I tried to get a functional data logger, and I have some old files of data on the cRIO.  I ftp copies files through IE, but I don't know how to delete the files from the cRIO.

    If you FTP via Windows Explorer, my computer, ftp://adresse IP in the address bar, you should be able to delete the files.

  • P645-MG how to remove the battery? I push with a paper clip in the hole of the icon on the back, but no reaction

    TravelMate P645-MG how to remove the main battery? Nothing happens when I push with a paper clip in the hole of the battery icon at the back of the computer. A video UTube said that a cover opens, but I can't find where there is a cover of the battery compartment.

    Hello

    Your laptop is equipped with an internal battery. You need to remove some modules and the bottom of the laptop to have access to it. The pinhole is only to reset the battery.

  • I have the acer aspire e1 - 510 with linux, how to remove linux and install windows?

    I have the acer aspire e1 - 510 with linux, how to remove linux and install windows?

    You can buy or download a copy retail Microsoft windows and install it on your computer.

    You can download and install the device driver windows for your computer to Acer support website.

  • How to remove the default for a limited only account gateway (with static ip address)

    I have 1 pc with 4 accounts 1 account administrator and user the rest is limited accounts. I use a static ip address and the question is how to remove the default gateway on these limited account so that they cannot access the internet

    The entry door is fixed to the adapter and selectively cannot set properties of the different adapter for different users, all users use the same adapter.

    With Internet Explorer (does not work with other browsers), you can configure a proxy server with a fake address, you can do this through Group Policy, or you can do it manually for each individual user through the Internet Options settings.  You can set the proxy server address map of loopback (127.0.0.1) or you can set it to a bogus address of your private address range (usually the range 192.168.xxx.xxx)

    If you are using other browsers, you can use NTFS permissions to deny access to the Explorer or the program directory or you can use software restriction policies to deny access to specific programs.

    Alternatively, you can use a logon script to activate the network connection service when you open a session and the other to turn it off when you log, but if you do this you will disable the entire network for limited users if it cannot be a solution for them.  The script can be a simple two-line script:

    Logon script:

    SC config Netman start = demand
    net start netman

    Logoff script:

    net stop netman
    SC config Netman start = disabled

    These can be useful:

    http://www.howtonetworking.com/Internet/restrictie11.htm
    http://www.christianblog.com/blog/abelajohnb/disable-Internet-access-in-Windows-for-specific-user-accounts/

    John

  • Anyone know how to remove the fisheye from a gopro camera effect, remove with premiere pro c

    Anyone know how to remove the fisheye from a gopro camera effect, remove it with premiere pro cc.

    Use the distorting effect of the lens curvature set at your convenience.

  • How to remove the time & date stamp

    Hi, I'm still learning Adobe Photoshop Elements 9, which is preloaded on my new computer. I don't have a user manual.

    Can someone tell me how to remove the date stamp and time of a photo.

    Try the spot Healing Brush tool or the Clone Stamp tool.

  • I work with microsoft Streets & Trips 2001 program and I can not know how to remove the small cities on the map. I only want to show the major townships in and around Pittsburgh

    The map shows the region I want, but I won't show as much of the smaller townships how to remove the card and display only the main townships

    Hello

    The question you have posted is related to Microsoft Streets and guts and would be best suited to:

    Highway, Streets & Trips, MapPoint

    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    http://www.Microsoft.com/streets/en-us/community-and-news.aspx

  • How to remove the value of the XML attribute in the Indesign file with javascript

    Hi all

    How to remove the value of the XML attribute in the Indesign file.

    1.jpg

    What error is this?

    in any case try this as well (one another),

    var myDoc = app.activeDocument;
    attrDelete(myDoc);
    function attrDelete(elm)
    {
        for (var i = 0; i < elm.xmlElements.length; i++)
        {
            try{
                for(j=0; j
    

    Vandy

  • any ideas on how to remove the software malicious zebrouss?

    any ideas on how to remove the software malicious zebrouss?

    This thing I replaces my setting of search in safari - can get rid of it - don't know who got it

    You may have installed ad-injecting malicious software ("adware").

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Save all data first.

    Some of the most common types of adware can be removed by following the instructions from Apple. But before you follow these instructions, you can try an automatic removal.

    If you are not already running the latest version of Mac OS X ("El Capitan"), update or upgrade in the App Store you could adware to automatically remove. If you are already using the latest version of El Capitan, you can still download the current update of the Apple Support downloads page and run it. Still, some types of malware will be deleted, not all. There is no such thing as the automatic removal of all possible malware, either by OS X third party software. That's why you can't rely on software to protect you.

    If the malware is deleted in your case, you will still need to make changes to the way you use your computer to protect you from new attacks. Ask if you need advice.

    If the malware is not automatically deleted, and you cannot remove yourself by following the instructions from Apple, see below.

    This simple procedure to detect any type of adware that I know. Disabling is a procedure distinct and better still.

    Some legitimate software is funded by advertising and may display advertisements in its own windows or in a web browser while it is running. It's not malware and it may not appear. In addition, some Web sites display advertising intrusive popup that can be confused with adware.

    If none of your web browsers work well enough to carry out these instructions, restart the computer in safe mode. Allows to temporarily disable the malware.

    Step 1

    Please triple - click on the line below on this page to select it, and then copy the text to the Clipboard by pressing Control-C key combination:

    ~/Library/LaunchAgents

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + v press return. Open a folder named "LaunchAgents", or you will get a notice stating that the file cannot be found. If the file is not found, proceed to the next step.

    If the folder opens, press the combination of keys command-2 to select the display of the list, if it is not already selected. Please don't skip this step.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. If necessary, enlarge the window so that all the content show.

    Follow the instructions in this support article under the heading "take a screenshot of a window." An image file with a name starting in 'Screenshot' should be saved to the desktop. Open the capture screen and make sure it is readable. If this isn't the case, capture a small part of the screen indicating that what needs to be shown.

    Start a reply to this message. Drag the image file in the editing window downloading. Alternatively, you can include text in the response.

    Leave the case open for now.

    Step 2

    Do as in step 1 with this line:

    /Library/LaunchAgents

    The record which can open up will have the same name but is not the same as in step 1. In this step, the folder does not exist.

    Step 3

    Repeat with this line:

    /Library/LaunchDaemons

    This time the file will be called "LaunchDaemons."

    Step 4

    Open Safari preferences window and select the tab 'Extensions'. If the extensions are listed, post a screenshot. If there are no extensions, or if you cannot launch Safari, skip this step.

    Step 5

    If you use Firefox or Chrome browser, open the list of extensions and do as in step 4.

  • How to remove the Exploit: Win32 / CVE-2010-3336

    Original title: Exploit: Win32 / CVE-2010-3336

    Does anyone know how to remove the Exploit: Win32 / CVE-2010-3336?

    Hi Bob,

    This may be due to malicious software or viruses on the computer.

    You have security software installed on the computer?

    If you have installed security software, I suggest you run a security scan and check if it helps to remove malicious software.

    In addition, you can also run Microsoft safety scanner to search for infected files.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    See the link to download and run the Analyzer:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Please let us know if the problem still persists. We will be happy to help you.

  • password on HP pavilion home pc used I'll start PC how to remove the password of owner he ask to log

    I bought a pc at a yard sale and the guy gave me a password, but it does not work what can make the password on HP pavilion windows xp home edition and it won't let me boot pc how to remove the owner password it asks to connect to windows? is there a jumper to remove the old?

    Hello

    Welcome to the Microsoft Community and thanks for posting the question. I understand that you want to remove the password on computer xp. Let me help you with the issue.

    1. were you able to get to the desktop screen earlier?

    2. what security software is installed?

    3. have you made changes on the computer recently?

    4. have you SP 3 installed update?

    To resolve this issue, let us try these methods:

    Method 1.

    Start the computer in safe mode and try to connect to the admin user account.

    To start the computer in safe mode: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true

    Method 2.

    You can create a new admin user account and check the status.

    You can create a new user account and check. Once the new user account works fine, then copy the data from the old user account for the user account.

    How to copy data from a user profile damaged to a new profile in Windows XP: http://support.microsoft.com/kb/811151

    I hope this helps. If you need further assistance on this particular issue or any other related issue Windows let us know and we will be happy to help you.

    Thank you.

Maybe you are looking for

  • No sound in firefox

    I can't sound on firefox in pages like youtube, I uninstalled and reinstalled firefox, in the audio mixer Panel, everything is ok. Can you help me? TKS

  • Kernel Panic after trying to restart Spotify

    I got a Kernel Panic after trying to restart Spotify. I just want to know, what software/hardware causing the Kernel Panic. Thank you! Mar 23 16:53:27 Feb 2016 Panic report *. panic (cpu 0 0xffffff800a3f076b appellant): "soclose: NOFDREF"@/Library/Ca

  • G501 / win 8.1 - default keyboard to U.S. each startup instead of the parameter UK

    I put ENG UK and keyboard ENG in the initial configuration, but each time it starts it is up to the ENGLAND WE. How can I make him stay keyboard and language English UK.

  • ACPI/HPQ0004 driver for HP DV6-2114-er

    Hello. I did a clean install of Windows 7 on my HP Pavilion DV6-2114er. All other drivers are working, but when I checked in the Device Manager, I see an unknown device with ACPI/HPQ0004. I tried the search and got a lot of different responses and di

  • problem with VLC Player

    whenever I open the VLC multimedia player, a DLL error comes it is like ' DLL user32.dll system was moved in memory. The application will not work correctly. The relocation occurred because the DLL C:\windows\system32\SHELL32. DLL occupied an area of